fix bug in undefined check

This commit is contained in:
KDSBrowne 2017-09-06 11:13:24 -07:00
parent d34f138b56
commit fd9a4cd98e
2 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ const isChatLocked = (receiverID) => {
const meeting = Meetings.findOne({});
const user = Users.findOne({});
if (typeof meeting.lockSettingsProp === 'undefined'){
if (meeting.lockSettingsProp === 'undefined'){
return false;
}

View File

@ -212,10 +212,10 @@ const getCurrentUser = () => {
};
const isMeetingLocked = () => {
const meeting = Meetings.findOne({});
const meeting = Meetings.findOne({ });
let isLocked = false;
if (typeof meeting.lockSettingsProp === 'undefined'){
if (meeting.lockSettingsProp === 'undefined'){
return isLocked;
}