Skip to content

Commit

Permalink
IDK WTF IS HAPPENING AHHH
Browse files Browse the repository at this point in the history
  • Loading branch information
itzCozi committed Mar 21, 2024
1 parent 4446c75 commit f230447
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/player/atoms/NextEpisodeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function NextEpisodeButton(props: {
}, 1000);

return () => clearInterval(interval);
}, []);
}, [time, duration]);

useEffect(() => {
if (seconds === 0) {
Expand All @@ -105,10 +105,6 @@ export function NextEpisodeButton(props: {
}
}, [seconds, loadNextEpisode]);

useEffect(() => {
setSeconds(15);
}, [time, duration]);

if (!meta?.episode || !nextEp) return null;
if (metaType !== "show") return null;

Expand Down

0 comments on commit f230447

Please sign in to comment.