update for 0.38.7 account_balance api changes
This commit is contained in:
parent
1bd625f0c6
commit
027c517ec6
2 changed files with 4 additions and 4 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -1750,8 +1750,8 @@ function doUpdateBalance() {
|
|||
const {
|
||||
wallet: { balance: balanceInStore }
|
||||
} = getState();
|
||||
lbryProxy.account_balance().then(balanceAsString => {
|
||||
const balance = parseFloat(balanceAsString);
|
||||
lbryProxy.account_balance().then(({ available }) => {
|
||||
const balance = parseFloat(available);
|
||||
if (balanceInStore !== balance) {
|
||||
dispatch({
|
||||
type: UPDATE_BALANCE,
|
||||
|
|
|
@ -10,8 +10,8 @@ export function doUpdateBalance() {
|
|||
const {
|
||||
wallet: { balance: balanceInStore },
|
||||
} = getState();
|
||||
Lbry.account_balance().then(balanceAsString => {
|
||||
const balance = parseFloat(balanceAsString);
|
||||
Lbry.account_balance().then(({ available }) => {
|
||||
const balance = parseFloat(available);
|
||||
if (balanceInStore !== balance) {
|
||||
dispatch({
|
||||
type: ACTIONS.UPDATE_BALANCE,
|
||||
|
|
Loading…
Reference in a new issue