Browse Source

Fixes broken order when missing provider/balance

gre-patch-1
Juan Cortes Ross 6 years ago
parent
commit
2d03735f01
No known key found for this signature in database GPG Key ID: 34A99C03E9455EB8
  1. 11
      src/actions/general.js

11
src/actions/general.js

@ -33,11 +33,8 @@ const selectAccountsBalanceAndOrder = createStructuredSelector({
export const refreshAccountsOrdering = () => (dispatch: *, getState: *) => { export const refreshAccountsOrdering = () => (dispatch: *, getState: *) => {
const all = selectAccountsBalanceAndOrder(getState()) const all = selectAccountsBalanceAndOrder(getState())
const allRatesAvailable = all.accountsBtcBalance.every(b => !!b) dispatch({
if (allRatesAvailable) { type: 'DB:REORDER_ACCOUNTS',
dispatch({ payload: sortAccounts(all),
type: 'DB:REORDER_ACCOUNTS', })
payload: sortAccounts(all),
})
}
} }

Loading…
Cancel
Save