From ad17b3838ed51c276e60c04b3d78e2615a906a07 Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Thu, 21 Mar 2024 19:53:48 -0400 Subject: [PATCH] Fix eslint issues --- src/components/player/atoms/NextEpisodeButton.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/player/atoms/NextEpisodeButton.tsx b/src/components/player/atoms/NextEpisodeButton.tsx index e5af7101..124e7b46 100644 --- a/src/components/player/atoms/NextEpisodeButton.tsx +++ b/src/components/player/atoms/NextEpisodeButton.tsx @@ -102,7 +102,7 @@ export function NextEpisodeButton(props: { if (countdown === 0) { loadNextEpisode(); } - }, [countdown]); + }, [countdown, loadNextEpisode]); if (!meta?.episode || !nextEp) return null; if (metaType !== "show") return null; @@ -130,7 +130,9 @@ export function NextEpisodeButton(props: { className="bg-buttons-primary hover:bg-buttons-primaryHover text-buttons-primaryText flex justify-center items-center" > - {countdown > 0 ? `Next episode in ${countdown} seconds` : t("player.nextEpisode.next")} + {countdown > 0 + ? `Next episode in ${countdown} seconds` + : t("player.nextEpisode.next")}