Skip to content

Commit

Permalink
fix: sound rerendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Dovakiin0 committed Dec 29, 2024
1 parent 516dd0f commit 7a5187e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/common/episode-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const EpisodeCard = ({
);
} else if (!showCard && variant === "card") {
return (
<Link
<a
href={`${ROUTES.WATCH}?anime=${props.animeId}&episode=${props.episode.episodeId}`}
>
<div
Expand All @@ -71,11 +71,11 @@ const EpisodeCard = ({
>
{`Episode ${props.episode.number}`}
</div>
</Link>
</a>
);
} else {
return (
<Link
<a
href={`${ROUTES.WATCH}?anime=${props.animeId}&episode=${props.episode.episodeId}`}
>
<div
Expand All @@ -85,8 +85,8 @@ const EpisodeCard = ({
? { backgroundColor: "#18181a" }
: hasWatchedEpisode
? {
backgroundColor: "#0f172a",
}
backgroundColor: "#0f172a",
}
: {}
}
>
Expand Down Expand Up @@ -114,7 +114,7 @@ const EpisodeCard = ({
</span>
)}
</div>
</Link>
</a>
);
}
};
Expand Down

0 comments on commit 7a5187e

Please sign in to comment.