From d0d19b0b3e9122c8229c61f9bd6d8ba7998ed909 Mon Sep 17 00:00:00 2001 From: fernandomg Date: Wed, 27 May 2020 10:09:28 -0300 Subject: [PATCH] refactor: use default values for immutable getters --- src/routes/safe/store/selectors/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/safe/store/selectors/index.ts b/src/routes/safe/store/selectors/index.ts index fc7d9276..b4401245 100644 --- a/src/routes/safe/store/selectors/index.ts +++ b/src/routes/safe/store/selectors/index.ts @@ -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([])) }, )