From 050c4cc3a81530b35bd078d10fbaa1e73e8e9b22 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Sat, 10 Jan 2026 17:58:40 -0700 Subject: [PATCH] Update InfoButton.tsx --- src/components/player/internals/InfoButton.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 ( );