fix: undefined value access

This commit is contained in:
João Victor 2024-09-13 15:33:12 -03:00
parent 7c39525cb5
commit bd8779d72c

View File

@ -111,10 +111,11 @@ const ScreenshareContainer = (props) => {
&& pinnedPadData.sharedNotes[0]?.sharedNotesExtId === NOTES_CONFIG.id;
const {
data: { presenter: isPresenter },
data: currentUserData
} = useCurrentUser((u) => ({
presenter: u.presenter,
}));
const isPresenter = currentUserData?.presenter;
const info = {
screenshare: {