Fixes settings screen

This commit is contained in:
Esteban Ordano 2014-09-01 11:04:57 -03:00
commit 91dedb8bc1

View file

@ -34,10 +34,11 @@ angular.module('copayApp.controllers').controller('SettingsController', function
}]; }];
$scope.selectedAlternative = { $scope.selectedAlternative = {
name: 'US Dollar', name: config.alternativeName,
isoCode: 'USD' isoCode: config.alternativeIsoCode
}; };
$scope.alternativeOpts = rateService.alternatives; $scope.alternativeOpts = rateService.isAvailable ?
rateService.listAlternatives() : [$scope.selectedAlternative];
rateService.whenAvailable(function() { rateService.whenAvailable(function() {
$scope.alternativeOpts = rateService.listAlternatives(); $scope.alternativeOpts = rateService.listAlternatives();