Skip to content

Commit

Permalink
Merge pull request ANSHIKA-26#97 from shivan2004/main
Browse files Browse the repository at this point in the history
updated typo for ep2 to display "गुलामी से मुक्ति", instead of "गुलामी सी मुक्ति"
  • Loading branch information
Avdhesh-Varshney authored Jun 11, 2024
2 parents cc56349 + 6b2062c commit af70b7d
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 af70b7d

Please sign in to comment.