From 439407ab0344b09806cc8f8b17346bfc57acd020 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 2 Oct 2019 16:20:48 -0400 Subject: [PATCH] return a promise with doUpdateBalance --- dist/bundle.es.js | 2 +- src/redux/actions/wallet.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 62abc47..c3ab516 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1915,7 +1915,7 @@ function doUpdateBalance() { const { wallet: { totalBalance: totalInStore } } = getState(); - lbryProxy.account_balance({ reserved_subtotals: true }).then(response => { + return lbryProxy.account_balance({ reserved_subtotals: true }).then(response => { const { available, reserved, reserved_subtotals, total } = response; const { claims, supports, tips } = reserved_subtotals; const totalFloat = parseFloat(total); diff --git a/src/redux/actions/wallet.js b/src/redux/actions/wallet.js index cff22d7..7d42dca 100644 --- a/src/redux/actions/wallet.js +++ b/src/redux/actions/wallet.js @@ -10,7 +10,7 @@ export function doUpdateBalance() { const { wallet: { totalBalance: totalInStore }, } = getState(); - Lbry.account_balance({reserved_subtotals: true}).then((response: BalanceResponse) => { + return Lbry.account_balance({ reserved_subtotals: true }).then((response: BalanceResponse) => { const { available, reserved, reserved_subtotals, total } = response; const { claims, supports, tips } = reserved_subtotals; const totalFloat = parseFloat(total);