diff --git a/src/components/player/internals/InfoButton.tsx b/src/components/player/internals/InfoButton.tsx index 0ca76d04..6ae7d806 100644 --- a/src/components/player/internals/InfoButton.tsx +++ b/src/components/player/internals/InfoButton.tsx @@ -33,11 +33,20 @@ export function InfoButton() { return null; } + // Don't render button if meta, tmdbId, or type is missing/invalid + if ( + !meta?.tmdbId || + !meta.type || + (meta.type !== "movie" && meta.type !== "show") + ) { + return null; + } + return ( );