Skip to content

Commit

Permalink
Merge pull request #303 from amansinghbais/bopis-400-notification-config
Browse files Browse the repository at this point in the history
Improved: added check for key in appFirebaseConfig (bopis-400)
  • Loading branch information
ravilodhi authored Jun 21, 2024
2 parents ed69f5b + cf0dc7e commit 23715fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DxpLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function handleUserFlow(token: string, oms: string, expirationTime: string
await userStore.setLocale(appState.getters['user/getUserProfile'].userLocale)
// check if firebase configurations are there
if (notificationContext.appFirebaseConfig) {
if (notificationContext.appFirebaseConfig && notificationContext.appFirebaseConfig.apiKey) {
// initialising and connecting firebase app for notification support
await initialiseFirebaseApp(
notificationContext.appFirebaseConfig,
Expand Down

0 comments on commit 23715fa

Please sign in to comment.