From 883503dab3a1cc07d283ea6bb8476151eb9b4908 Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Sun, 24 Mar 2024 13:50:52 -0400 Subject: [PATCH] Use peak debugging tech #2 --- src/components/player/atoms/NextEpisodeButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/player/atoms/NextEpisodeButton.tsx b/src/components/player/atoms/NextEpisodeButton.tsx index bdb8faf6..eec3ed31 100644 --- a/src/components/player/atoms/NextEpisodeButton.tsx +++ b/src/components/player/atoms/NextEpisodeButton.tsx @@ -81,7 +81,7 @@ export function NextEpisodeButton(props: { }, [setDirectMeta, nextEp, meta, props, setShouldStartFromBeginning]); useEffect(() => { - if (time >= duration && meta && nextEp) { + if (time === duration && meta && nextEp) { loadNextEpisode(); } }, [time, duration, meta, nextEp, loadNextEpisode]);