Adjust check for User.loggedOut to prevent errors

This commit is contained in:
Anton Georgiev 2020-07-10 13:45:37 -04:00
parent f6acb2cb60
commit c763041285

View File

@ -178,7 +178,7 @@ class Base extends Component {
return (<MeetingEnded code="403" />);
}
if ((meetingHasEnded || User.loggedOut) && meetingIsBreakout) {
if ((meetingHasEnded || (User && User.loggedOut)) && meetingIsBreakout) {
window.close();
return null;
}