fix bug in undefined check
This commit is contained in:
parent
d34f138b56
commit
fd9a4cd98e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user