From 08163ede9be1d2eb41dd47704301a2262a67cc2d Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Thu, 21 Mar 2024 19:04:52 -0400 Subject: [PATCH] Try to account for user interaction --- src/components/player/atoms/NextEpisodeButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/player/atoms/NextEpisodeButton.tsx b/src/components/player/atoms/NextEpisodeButton.tsx index fdd16aff..570e198e 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) { @@ -131,7 +131,7 @@ export function NextEpisodeButton(props: { className="bg-buttons-primary hover:bg-buttons-primaryHover text-buttons-primaryText flex justify-center items-center" > - {t(`player.nextEpisode.next${seconds > 0 ? ` in ${seconds}` : ""}`)} + {t(`player.nextEpisode.next ${seconds > 0 ? ` in ${seconds}` : ""}`)}