return a promise with doUpdateBalance

This commit is contained in:
Sean Yesmunt 2019-10-02 16:20:48 -04:00
parent e1965da596
commit 439407ab03
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -1915,7 +1915,7 @@ function doUpdateBalance() {
const { const {
wallet: { totalBalance: totalInStore } wallet: { totalBalance: totalInStore }
} = getState(); } = 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 { available, reserved, reserved_subtotals, total } = response;
const { claims, supports, tips } = reserved_subtotals; const { claims, supports, tips } = reserved_subtotals;
const totalFloat = parseFloat(total); const totalFloat = parseFloat(total);

View file

@ -10,7 +10,7 @@ export function doUpdateBalance() {
const { const {
wallet: { totalBalance: totalInStore }, wallet: { totalBalance: totalInStore },
} = getState(); } = 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 { available, reserved, reserved_subtotals, total } = response;
const { claims, supports, tips } = reserved_subtotals; const { claims, supports, tips } = reserved_subtotals;
const totalFloat = parseFloat(total); const totalFloat = parseFloat(total);