Merge pull request #418 from gabrielbazan7/fix/rateOnboarding
add scope apply to onboarding rate values
This commit is contained in:
commit
67d9ec751e
1 changed files with 4 additions and 1 deletions
|
|
@ -34,6 +34,9 @@ angular.module('copayApp.controllers').controller('tourController',
|
||||||
var rate = rateService.toFiat(btcAmount * 1e8, localCurrency);
|
var rate = rateService.toFiat(btcAmount * 1e8, localCurrency);
|
||||||
$scope.localCurrencySymbol = '$';
|
$scope.localCurrencySymbol = '$';
|
||||||
$scope.localCurrencyPerBtc = $filter('formatFiatAmount')(parseFloat(rate.toFixed(2), 10));
|
$scope.localCurrencyPerBtc = $filter('formatFiatAmount')(parseFloat(rate.toFixed(2), 10));
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -50,7 +53,7 @@ angular.module('copayApp.controllers').controller('tourController',
|
||||||
ongoingProcess.set('creatingWallet', false);
|
ongoingProcess.set('creatingWallet', false);
|
||||||
popupService.showAlert(
|
popupService.showAlert(
|
||||||
gettextCatalog.getString('Cannot Create Wallet'), err,
|
gettextCatalog.getString('Cannot Create Wallet'), err,
|
||||||
function() {
|
function() {
|
||||||
retryCount = 0;
|
retryCount = 0;
|
||||||
return $scope.createDefaultWallet();
|
return $scope.createDefaultWallet();
|
||||||
}, gettextCatalog.getString('Retry'));
|
}, gettextCatalog.getString('Retry'));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue