Merge pull request #183 from lbryio/sdk-balance-changes

update for 0.38.7 account_balance api changes
This commit is contained in:
Sean Yesmunt 2019-08-14 23:47:39 -04:00 committed by GitHub
commit 1af092ce2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

4
dist/bundle.es.js vendored
View file

@ -1750,8 +1750,8 @@ function doUpdateBalance() {
const { const {
wallet: { balance: balanceInStore } wallet: { balance: balanceInStore }
} = getState(); } = getState();
lbryProxy.account_balance().then(balanceAsString => { lbryProxy.account_balance().then(({ available }) => {
const balance = parseFloat(balanceAsString); const balance = parseFloat(available);
if (balanceInStore !== balance) { if (balanceInStore !== balance) {
dispatch({ dispatch({
type: UPDATE_BALANCE, type: UPDATE_BALANCE,

View file

@ -10,8 +10,8 @@ export function doUpdateBalance() {
const { const {
wallet: { balance: balanceInStore }, wallet: { balance: balanceInStore },
} = getState(); } = getState();
Lbry.account_balance().then(balanceAsString => { Lbry.account_balance().then(({ available }) => {
const balance = parseFloat(balanceAsString); const balance = parseFloat(available);
if (balanceInStore !== balance) { if (balanceInStore !== balance) {
dispatch({ dispatch({
type: ACTIONS.UPDATE_BALANCE, type: ACTIONS.UPDATE_BALANCE,