From f230447cfa5cfcca266e9b380f42c84a2b21ad39 Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Thu, 21 Mar 2024 19:18:29 -0400 Subject: [PATCH] IDK WTF IS HAPPENING AHHH --- src/components/player/atoms/NextEpisodeButton.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;