Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
feat(Watch Only): only show spendable balance
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Apr 19, 2018
1 parent 38afc90 commit e9645bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/services/wallet.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,9 +803,9 @@ function Wallet ($http, $window, $timeout, $location, $injector, Alerts, MyWalle
case void 0:
if (wallet.my.wallet.isUpgradedToHD) {
if (wallet.my.wallet.balanceActiveLegacy == null || wallet.my.wallet.hdwallet.balanceActiveAccounts == null) return null;
return wallet.my.wallet.hdwallet.balanceActiveAccounts + wallet.my.wallet.balanceActiveLegacy;
return wallet.my.wallet.hdwallet.balanceActiveAccounts + wallet.my.wallet.balanceSpendableActiveLegacy;
} else {
return wallet.my.wallet.balanceActiveLegacy;
return wallet.my.wallet.balanceSpendableActiveLegacy;
}
case 'imported':
return wallet.my.wallet.balanceActiveLegacy;
Expand Down

0 comments on commit e9645bf

Please sign in to comment.