From 2d03735f01903dcf2263216f99cfcd32b894f3cd Mon Sep 17 00:00:00 2001 From: Juan Cortes Ross Date: Wed, 26 Dec 2018 16:04:21 +0100 Subject: [PATCH 1/2] 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), + }) } From 435187fc5552c3c842d458acfad7a437368c1448 Mon Sep 17 00:00:00 2001 From: Juan Cortes Ross Date: Fri, 28 Dec 2018 14:09:02 +0100 Subject: [PATCH 2/2] live-common version bump to 4.8.0-beta.24 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a3e073dd..066f2acb 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "@ledgerhq/hw-transport": "^4.32.0", "@ledgerhq/hw-transport-node-hid": "^4.32.0", "@ledgerhq/ledger-core": "2.0.0-rc.14", - "@ledgerhq/live-common": "4.8.0-beta.23", + "@ledgerhq/live-common": "4.8.0-beta.24", "animated": "^0.2.2", "async": "^2.6.1", "axios": "^0.18.0", diff --git a/yarn.lock b/yarn.lock index ac63d684..93048390 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1725,10 +1725,10 @@ bindings "^1.3.0" nan "^2.6.2" -"@ledgerhq/live-common@4.8.0-beta.23": - version "4.8.0-beta.23" - resolved "https://registry.yarnpkg.com/@ledgerhq/live-common/-/live-common-4.8.0-beta.23.tgz#a6f0d5016116204ffba92648fb5b1f6fd0458196" - integrity sha512-sgwto1g8VyNSYAr7kimvuX+hlYN9r1FvArCD1JvUtjo9I57Ucj8TMyusfHLhne1exivrjuoNdVJIZaR3YJUvXg== +"@ledgerhq/live-common@4.8.0-beta.24": + version "4.8.0-beta.24" + resolved "https://registry.yarnpkg.com/@ledgerhq/live-common/-/live-common-4.8.0-beta.24.tgz#5f30ea9b63c1a561120eb6757b6663d1c20b67e0" + integrity sha512-guW9LH/kAk9bmZ8dJV0OlzNYOoE8Jo0VPxZuYCLuzO09Xr41oBfEARdSnVNV6+n/L/BDc8EZSlixpbxMKZ9yFQ== dependencies: "@aeternity/ledger-app-api" "0.0.4" "@ledgerhq/hw-app-btc" "^4.32.0"