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

Commit

Permalink
Merge branch 'v1.35-release' into recurring-v2-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Apr 23, 2018
2 parents 7191934 + b708f22 commit 0845a97
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/partials/sfox/checkout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ bc-tabs(tab="tabs.selectedTab" tab-options="tabs.options" on-select="tabs.select
trade-account="checkout.state.account"
handle-quote="buyQuoteHandler(amount, baseCurr, quoteCurr)"
on-success="buying().verificationRequired ? checkout.openSfoxSignup() : prepareBuy(quote)")
.flex-column.width-50.pl-30.prn.pv-10-mobile.no-margin-mobile.hidden-xs(ng-if="checkout.onStep('create') && showBuy() && !checkout.hasDismissedBuyIntro()")
.flex-column.width-50.pl-30.prn.pv-10-mobile.no-margin-mobile.hidden-xs(ng-if="checkout.onStep('create') && showBuy() && !checkout.hasDismissedBuyIntro() && !pendingBuyTrades().length")
.mb-20
.flex-between
span.f-24.blue.f-14-mobile
Expand Down
2 changes: 1 addition & 1 deletion assets/js/services/wallet.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ function Wallet ($http, $window, $timeout, $location, $injector, Alerts, MyWalle
case '':
case void 0:
if (wallet.my.wallet.isUpgradedToHD) {
if (wallet.my.wallet.balanceActiveLegacy == null || wallet.my.wallet.hdwallet.balanceActiveAccounts == null) return null;
if (wallet.my.wallet.balanceSpendableActiveLegacy == null || wallet.my.wallet.hdwallet.balanceActiveAccounts == null) return null;
return wallet.my.wallet.hdwallet.balanceActiveAccounts + wallet.my.wallet.balanceSpendableActiveLegacy;
} else {
return wallet.my.wallet.balanceSpendableActiveLegacy;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-blockchain-wallet",
"version": "1.35.3",
"version": "1.35.4",
"description": "AngularJS front-end to My-Wallet-V3.",
"dependencies": {
"@uirouter/angularjs": "^1.0.3",
Expand Down
2 changes: 1 addition & 1 deletion tests/services/wallet_service_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ describe('walletServices', () => {
it('should return the sum of all accounts and addresses', inject(function (Wallet) {

Wallet.my.wallet.hdwallet.balanceActiveAccounts = 3;
Wallet.my.wallet.balanceActiveLegacy = 1;
Wallet.my.wallet.balanceSpendableActiveLegacy = 1;

expect(Wallet.total("")).toBeGreaterThan(0);
expect(Wallet.total("")).toBe(4);
Expand Down

0 comments on commit 0845a97

Please sign in to comment.