Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[web][cast] Minor fixes

Neeraj Gupta8e5d5c4e4146
diff --git a/web/apps/cast/src/pages/index.tsx b/web/apps/cast/src/pages/index.tsx
index 43c1900623..b48da7e35e 100644
--- a/web/apps/cast/src/pages/index.tsx
+++ b/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;
diff --git a/web/apps/cast/src/utils/useCastReceiver.tsx b/web/apps/cast/src/utils/useCastReceiver.tsx
index c12b5095dd..55f8e17593 100644
--- a/web/apps/cast/src/utils/useCastReceiver.tsx
+++ b/web/apps/cast/src/utils/useCastReceiver.tsx
@@ -38,7 +38,7 @@ const load = (() => {
export const useCastReceiver = () => {
const [receiver, setReceiver] = useState<Receiver | null>({
- cast: null
+ cast: null,
});
useEffect(() => {