Browse Source
Fixes broken order when missing provider/balance
gre-patch-1
Juan Cortes Ross
6 years ago
No known key found for this signature in database
GPG Key ID: 34A99C03E9455EB8
1 changed files with
4 additions and
7 deletions
-
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), |
|
|
|
}) |
|
|
|
} |
|
|
|