Fix prop-types warning in Base

This commit is contained in:
Maxim Khlobystov 2019-06-04 15:23:44 -04:00
parent 2c85ff6c65
commit ac844031bf

View File

@ -33,7 +33,7 @@ const propTypes = {
const defaultProps = {
locale: undefined,
approved: undefined,
approved: false,
meetingExist: false,
subscriptionsReady: false,
};
@ -227,7 +227,7 @@ const BaseContainer = withTracker(() => {
if (meetingEnded) Session.set('codeError', '410');
}
const approved = Users.findOne({ userId: Auth.userID, approved: true, guest: true });
const approved = !!Users.findOne({ userId: Auth.userID, approved: true, guest: true });
const ejected = Users.findOne({ userId: Auth.userID, ejected: true });
if (Session.get('codeError')) {
return {