From 2d03735f01903dcf2263216f99cfcd32b894f3cd Mon Sep 17 00:00:00 2001 From: Juan Cortes Ross Date: Wed, 26 Dec 2018 16:04:21 +0100 Subject: [PATCH] Fixes broken order when missing provider/balance --- src/actions/general.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/actions/general.js b/src/actions/general.js index 1c984625..a7d187eb 100644 --- a/src/actions/general.js +++ b/src/actions/general.js @@ -33,11 +33,8 @@ const selectAccountsBalanceAndOrder = createStructuredSelector({ export const refreshAccountsOrdering = () => (dispatch: *, getState: *) => { const all = selectAccountsBalanceAndOrder(getState()) - const allRatesAvailable = all.accountsBtcBalance.every(b => !!b) - if (allRatesAvailable) { - dispatch({ - type: 'DB:REORDER_ACCOUNTS', - payload: sortAccounts(all), - }) - } + dispatch({ + type: 'DB:REORDER_ACCOUNTS', + payload: sortAccounts(all), + }) }