Skip to content

Commit

Permalink
Merge pull request #342 from gabrielbazan7/fix/getstatusall
Browse files Browse the repository at this point in the history
[FIX] use different client for each key
  • Loading branch information
JohnathanWhite authored Aug 11, 2022
2 parents 9e1223e + 1c5f04b commit 802c002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/wallet/effects/status/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ export const startUpdateAllWalletStatusForKeys =
const {APP, WALLET} = getState();
const {defaultAltCurrency} = APP;
const {rates, lastDayRates, balanceCacheKey} = WALLET;
const {bulkClient} = BwcProvider.getInstance().getClient();

const keyUpdatesPromises: Promise<{
keyId: string;
Expand Down Expand Up @@ -321,6 +320,7 @@ export const startUpdateAllWalletStatusForKeys =
return;
}

const {bulkClient} = BwcProvider.getInstance().getClient();
keyUpdatesPromises.push(
new Promise(resolveKeyBalanceStatus => {
bulkClient.getStatusAll(
Expand Down

0 comments on commit 802c002

Please sign in to comment.