diff --git a/src/components/DxpLogin.vue b/src/components/DxpLogin.vue index 2326043..a56e635 100644 --- a/src/components/DxpLogin.vue +++ b/src/components/DxpLogin.vue @@ -93,8 +93,10 @@ async function handleUserFlow(token: string, oms: string, expirationTime: string const appState = appContext.config.globalProperties.$store await userStore.setLocale(appState.getters['user/getUserProfile'].userLocale) + const allNotificationPrefs = appState.getters['user/getAllNotificationPrefs'] + // check if firebase configurations are there - if (notificationContext.appFirebaseConfig && notificationContext.appFirebaseConfig.apiKey) { + if (notificationContext.appFirebaseConfig && notificationContext.appFirebaseConfig.apiKey && allNotificationPrefs?.length) { // initialising and connecting firebase app for notification support await initialiseFirebaseApp( notificationContext.appFirebaseConfig,