cleanup unused method for alt currency conversion
This commit is contained in:
parent
377dc7a176
commit
8517dcd2d6
2 changed files with 7 additions and 26 deletions
|
|
@ -59,7 +59,7 @@ angular.module('copayApp.controllers').controller('HistoryController',
|
|||
return;
|
||||
}
|
||||
|
||||
_.each(res, function (r) {
|
||||
_.each(res, function(r) {
|
||||
r.ts = r.minedTs || r.sentTs;
|
||||
if (r.action === 'sent' && r.peerActions) {
|
||||
r.actionList = controllerUtils.getActionList(r.peerActions);
|
||||
|
|
@ -82,14 +82,6 @@ angular.module('copayApp.controllers').controller('HistoryController',
|
|||
var w = $rootScope.wallet;
|
||||
return w.getNetworkName().substring(0, 4);
|
||||
};
|
||||
$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;
|
||||
});
|
||||
};
|
||||
|
||||
// Autoload transactions
|
||||
$scope.getTransactions();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue