prevent TypeError when viewedSafe is undefined
This commit is contained in:
parent
67c67f4569
commit
4634041467
|
@ -105,7 +105,7 @@ const notificationsMiddleware = (store) => (next) => async (action) => {
|
|||
action.payload.forEach((incomingTransactions, safeAddress) => {
|
||||
const { latestIncomingTxBlock } = state.safes.get('safes').get(safeAddress)
|
||||
const viewedSafes = state.currentSession ? state.currentSession.get('viewedSafes') : []
|
||||
const recurringUser = viewedSafes.includes(safeAddress)
|
||||
const recurringUser = viewedSafes?.includes(safeAddress)
|
||||
|
||||
const newIncomingTransactions = incomingTransactions.filter((tx) => tx.blockNumber > latestIncomingTxBlock)
|
||||
|
||||
|
|
Loading…
Reference in New Issue