diff --git a/src/routes/safe/store/middleware/notificationsMiddleware.ts b/src/routes/safe/store/middleware/notificationsMiddleware.ts index be838e70..bea90187 100644 --- a/src/routes/safe/store/middleware/notificationsMiddleware.ts +++ b/src/routes/safe/store/middleware/notificationsMiddleware.ts @@ -152,7 +152,11 @@ const notificationsMiddleware = (store) => (next) => async (action) => { } case ADD_SAFE: { const state = store.getState() - const currentSafeAddress = safeParamAddressFromStateSelector(state) + const { safe } = action.payload + const currentSafeAddress = safeParamAddressFromStateSelector(state) || safe.address + if (!currentSafeAddress) { + break + } const isUserOwner = grantedSelector(state) const { needUpdate } = await getSafeVersionInfo(currentSafeAddress)