diff --git a/components/Chromecast.tsx b/components/Chromecast.tsx index 268556d9..855e7dd8 100644 --- a/components/Chromecast.tsx +++ b/components/Chromecast.tsx @@ -132,8 +132,12 @@ export function Chromecast({ currentItemId: mediaStatus?.currentItemId, castDevice: castDevice?.friendlyName, }); - if (mediaStatus?.currentItemId) router.push("/casting-player"); - else CastContext.showCastDialog(); + if (mediaStatus?.currentItemId) { + console.log("Navigating to: /(auth)/casting-player"); + router.push("/(auth)/casting-player"); + } else { + CastContext.showCastDialog(); + } }} {...props} >