Fixes hiding of bitpay cards entry in settings when no cards are found.
This commit is contained in:
parent
3bf8923f10
commit
c57effda96
1 changed files with 2 additions and 4 deletions
|
|
@ -28,11 +28,9 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
|
|||
$scope.glideraEnabled = config.glidera.enabled && !isWindowsPhoneApp;
|
||||
|
||||
if ($scope.bitpayCardEnabled) {
|
||||
bitpayCardService.getBitpayDebitCards(function(err, data) {
|
||||
bitpayCardService.getBitpayDebitCards(function(err, cards) {
|
||||
if (err) $log.error(err);
|
||||
if (!lodash.isEmpty(data)) {
|
||||
$scope.bitpayCards = true;
|
||||
}
|
||||
$scope.bitpayCards = cards && cards.length > 0;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue