Skip to content

Commit

Permalink
fix: type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eswarclynn committed Aug 2, 2024
1 parent 18b79cf commit ccb9b73
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import '@100mslive/hms-whiteboard/index.css';

const WhiteboardEmbed = () => {
const isMobile = useMedia(cssConfig.media.md);
const { token, endpoint, permissions } = useWhiteboard(isMobile);
const { token, endpoint, permissions } = useWhiteboard();
const isHeadless = useHMSStore(selectAppData('disableNotifications'));

const isReadonly = !permissions.includes('write');
const isReadonly = !permissions?.includes('write');

if (!token) {
return null;
Expand Down

0 comments on commit ccb9b73

Please sign in to comment.