From 5b1d8dc5a07e8c5bc59605826ca6d6ab9faf008a Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Thu, 28 Mar 2024 00:16:02 -0400 Subject: [PATCH] add a todo --- src/components/player/atoms/NextEpisodeButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/player/atoms/NextEpisodeButton.tsx b/src/components/player/atoms/NextEpisodeButton.tsx index 8ed6f3fb..da1dd110 100644 --- a/src/components/player/atoms/NextEpisodeButton.tsx +++ b/src/components/player/atoms/NextEpisodeButton.tsx @@ -1,5 +1,5 @@ import classNames from "classnames"; -import React, { useCallback } from "react"; +import React, { useCallback, useEffect } from "react"; import { useTranslation } from "react-i18next"; import { Icon, Icons } from "@/components/Icon"; @@ -88,6 +88,8 @@ export function NextEpisodeButton(props: { props.onChange?.(metaCopy); }, [setDirectMeta, meta, props, setShouldStartFromBeginning]); + // TODO: If the type is a movie add a Go home button instead! + if (!meta?.episode || !nextEp) return null; if (metaType !== "show") return null;