diff --git a/app/components/ScreenshareButton.tsx b/app/components/ScreenshareButton.tsx index 72703a05..de7cf93c 100644 --- a/app/components/ScreenshareButton.tsx +++ b/app/components/ScreenshareButton.tsx @@ -9,11 +9,9 @@ interface ScreenshareButtonProps {} export const ScreenshareButton: FC = () => { const { - userMedia: { screenShareVideoTrack, startScreenShare, endScreenShare }, + userMedia: { startScreenShare, endScreenShare, screenShareEnabled }, } = useRoomContext() - const sharing = screenShareVideoTrack !== undefined - const [canShareScreen, setCanShareScreen] = useState(true) // setting this in a useEffect because we need to do this feature @@ -31,8 +29,8 @@ export const ScreenshareButton: FC = () => { return (