simple test
This commit is contained in:
parent
8ef737083a
commit
26148d1f76
2 changed files with 17 additions and 1 deletions
|
|
@ -156,11 +156,12 @@ angular.module('copayApp.controllers').controller('TransactionsController',
|
|||
$scope.getTransactions();
|
||||
}
|
||||
|
||||
$scope.amountAlternative = function (amount, txIndex) {
|
||||
$scope.amountAlternative = function (amount, txIndex, cb) {
|
||||
var w = $rootScope.wallet;
|
||||
rateService.whenAvailable(function() {
|
||||
var valueSat = amount * w.settings.unitToSatoshi;
|
||||
$scope.alternativeCurrency[txIndex] = rateService.toFiat(valueSat, w.settings.alternativeIsoCode);
|
||||
return cb ? cb() : null;
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue