refactor
This commit is contained in:
parent
038a4413d0
commit
c5bc1006a9
1 changed files with 2 additions and 2 deletions
|
|
@ -182,12 +182,12 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
};
|
};
|
||||||
|
|
||||||
var nextStep = function(cb) {
|
var nextStep = function(cb) {
|
||||||
var i = 1;
|
var i = 0;
|
||||||
var services = ['AmazonGiftCards', 'BitpayCard', 'BuyAndSell'];
|
var services = ['AmazonGiftCards', 'BitpayCard', 'BuyAndSell'];
|
||||||
lodash.each(services, function(service) {
|
lodash.each(services, function(service) {
|
||||||
storageService.getNextStep(service, function(err, value) {
|
storageService.getNextStep(service, function(err, value) {
|
||||||
$scope.externalServices[service] = value ? true : false;
|
$scope.externalServices[service] = value ? true : false;
|
||||||
if (i++ == services.length) return cb();
|
if (++i == services.length) return cb();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue