Fixes settings screen
This commit is contained in:
parent
54b3482b1f
commit
91dedb8bc1
1 changed files with 4 additions and 3 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue