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: *) => {
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),
})
}

Loading…
Cancel
Save