Skip to content

Commit

Permalink
updated typo for ep2
Browse files Browse the repository at this point in the history
  • Loading branch information
shivan2004 authored Jun 8, 2024
1 parent 4c8cf67 commit 6b2062c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/Pages/RequestEpisode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ const RequestEpisode = (props) => {
setProgress(80);
let trimData = segregate(URL);
let nextTrimData = nextURL ? segregate(nextURL) : { title: 'No more episodes available,', content: 'this is the finale' };

// Special case for episode 2
if (episodeNumber === 2) {
trimData.content = 'गुलामी से मुक्ति';
}

// Special case for episode 1 up next
if (episodeNumber === 1 && nextTrimData.title.includes('Ep 02')) {
nextTrimData.content = 'गुलामी से मुक्ति';
}

setContent(trimData.content);
setUrl(trimData.url);
setNextTitle(nextTrimData.title);
Expand Down Expand Up @@ -87,7 +98,7 @@ const RequestEpisode = (props) => {
{nextTitle && nextContent && (
<div className="next-episode-card">
<h5>Up Next:</h5>
<p>{nextTitle} {nextContent}</p>
<p>{nextTitle} {nextContent}</p>
</div>
)}
</div>
Expand Down

0 comments on commit 6b2062c

Please sign in to comment.