return a promise with doUpdateBalance
This commit is contained in:
parent
e1965da596
commit
439407ab03
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue