fix condition when there is not wallet created

This commit is contained in:
Gabriel Bazán 2016-09-29 16:16:27 -03:00
parent 4069998930
commit cc752ec580
2 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,7 @@
</div>
<div class="list card"
ng-if="(!externalServices.AmazonGiftCards || !externalServices.BitpayCard || !externalServices.BuyAndSell || !wallets[0]) && nextStepEnabled">
ng-if="externalServices.AmazonGiftCards || externalServices.BitpayCard || externalServices.BuyAndSell || !wallets[0] || nextStepEnabled">
<div class="item item-icon-right item-heading" ng-click="shouldHideNextSteps()" translate>
Next steps
<i class="icon nav-item-arrow-down" ng-if="!hideNextSteps"></i>

View File

@ -226,6 +226,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
$scope.amazonEnabled = config.amazon.enabled;
$scope.bitpayCardEnabled = config.bitpayCard.enabled;
$scope.nextStepEnabled = $scope.glideraEnabled || $scope.coinbaseEnabled || $scope.amazonEnabled || $scope.bitpayCardEnabled;
console.log($scope.nextStepEnabled);
$scope.recentTransactionsEnabled = config.recentTransactions.enabled;
if ($scope.bitpayCardEnabled) bitpayCardCache();