diff --git a/src/components/player/atoms/NextEpisodeButton.tsx b/src/components/player/atoms/NextEpisodeButton.tsx index 59a38502..3e8e14d5 100644 --- a/src/components/player/atoms/NextEpisodeButton.tsx +++ b/src/components/player/atoms/NextEpisodeButton.tsx @@ -96,7 +96,7 @@ export function NextEpisodeButton(props: { }, 1000); return () => clearInterval(interval); - }, []); + }, [time, duration]); useEffect(() => { if (seconds === 0) { @@ -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;