From 03abfd0ade0077909f71575ea06ce18e31013d81 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 21 Aug 2021 22:57:12 +0100 Subject: [PATCH] :ambulance: Adds null check to appConfig.auth --- src/utils/Auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Auth.js b/src/utils/Auth.js index 5e29008b..49cc5ae2 100644 --- a/src/utils/Auth.js +++ b/src/utils/Auth.js @@ -102,7 +102,7 @@ export const isGuestAccessEnabled = () => { printWarning(); return true; } - if (!Array.isArray(appConfig.auth)) { + if (appConfig.auth && !Array.isArray(appConfig.auth)) { return appConfig.auth.enableGuestAccess || false; } return false;