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

## Description

## Tests
This commit is contained in:
Neeraj Gupta 2024-04-21 18:04:35 +05:30 committed by GitHub
commit 9cb030124b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

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

View file

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