Fix: app crashing when safe address is null (#947)
* - Fixs non null check on notificationsMiddleware.ts * - Fixs non null check on notificationsMiddleware.ts * - Removes yarn.lock changes
This commit is contained in:
parent
d9e62adc26
commit
7cc6349785
|
@ -152,7 +152,11 @@ const notificationsMiddleware = (store) => (next) => async (action) => {
|
||||||
}
|
}
|
||||||
case ADD_SAFE: {
|
case ADD_SAFE: {
|
||||||
const state = store.getState()
|
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 isUserOwner = grantedSelector(state)
|
||||||
const { needUpdate } = await getSafeVersionInfo(currentSafeAddress)
|
const { needUpdate } = await getSafeVersionInfo(currentSafeAddress)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue