Sfoglia il codice sorgente

[web][cast] Minor fixes (#1507)

## Description

## Tests
Neeraj Gupta 1 anno fa
parent
commit
9cb030124b

+ 2 - 1
web/apps/cast/src/pages/index.tsx

@@ -93,9 +93,10 @@ export default function PairingMode() {
         }
 
         return () => {
+            console.log("stopping cast context");
             context.stop();
         };
-    }, [cast, isCastReady]);
+    }, [cast]);
 
     const messageReceiveHandler = (message: {
         type: string;

+ 0 - 1
web/apps/cast/src/utils/useCastReceiver.tsx

@@ -39,7 +39,6 @@ const load = (() => {
 export const useCastReceiver = () => {
     const [receiver, setReceiver] = useState<Receiver | null>({
         cast: null,
-        debug: null,
     });
 
     useEffect(() => {