refactor: use default values for immutable getters
This commit is contained in:
parent
7c2f27cf2d
commit
d0d19b0b3e
|
@ -60,7 +60,7 @@ export const safeTransactionsSelector = createSelector(
|
|||
return List([])
|
||||
}
|
||||
|
||||
return transactions.get(address) || List([])
|
||||
return transactions.get(address, List([]))
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -86,7 +86,7 @@ export const safeCancellationTransactionsSelector = createSelector(
|
|||
return Map()
|
||||
}
|
||||
|
||||
return cancellationTransactions.get(address) || Map({})
|
||||
return cancellationTransactions.get(address, Map({}))
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -102,7 +102,7 @@ export const safeIncomingTransactionsSelector = createSelector(
|
|||
return List([])
|
||||
}
|
||||
|
||||
return incomingTransactions.get(address) || List([])
|
||||
return incomingTransactions.get(address, List([]))
|
||||
},
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue