refactor: use default values for immutable getters

This commit is contained in:
fernandomg 2020-05-27 10:09:28 -03:00
parent 7c2f27cf2d
commit d0d19b0b3e
1 changed files with 3 additions and 3 deletions

View File

@ -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([]))
},
)