diff --git a/react/features/notifications/functions.js b/react/features/notifications/functions.js index f2664d7cc..1cbad693a 100644 --- a/react/features/notifications/functions.js +++ b/react/features/notifications/functions.js @@ -24,5 +24,5 @@ export function areThereNotifications(stateful: Object | Function) { * @returns {boolean} */ export function joinLeaveNotificationsDisabled() { - return Boolean(interfaceConfig?.DISABLE_JOIN_LEAVE_NOTIFICATIONS); + return Boolean(typeof interfaceConfig !== 'undefined' && interfaceConfig?.DISABLE_JOIN_LEAVE_NOTIFICATIONS); } diff --git a/react/features/presence-status/functions.js b/react/features/presence-status/functions.js index c22e4cc62..442c44524 100644 --- a/react/features/presence-status/functions.js +++ b/react/features/presence-status/functions.js @@ -8,5 +8,5 @@ declare var interfaceConfig: Object; * @returns {boolean} */ export function presenceStatusDisabled() { - return Boolean(interfaceConfig?.DISABLE_PRESENCE_STATUS); + return Boolean(typeof interfaceConfig !== 'undefined' && interfaceConfig?.DISABLE_PRESENCE_STATUS); }