commit
040e6bda33
1 changed files with 3 additions and 3 deletions
|
|
@ -18,13 +18,13 @@ angular.module('copayApp.services').factory('txFormatService', function($filter,
|
||||||
};
|
};
|
||||||
|
|
||||||
root.formatAmountStr = function(satoshis) {
|
root.formatAmountStr = function(satoshis) {
|
||||||
if (!satoshis) return;
|
if (isNaN(satoshis)) return;
|
||||||
var config = configService.getSync().wallet.settings;
|
var config = configService.getSync().wallet.settings;
|
||||||
return root.formatAmount(satoshis) + ' ' + config.unitName;
|
return root.formatAmount(satoshis) + ' ' + config.unitName;
|
||||||
};
|
};
|
||||||
|
|
||||||
root.formatToUSD = function(satoshis, cb) {
|
root.formatToUSD = function(satoshis, cb) {
|
||||||
if (!satoshis) return;
|
if (isNaN(satoshis)) return;
|
||||||
var val = function() {
|
var val = function() {
|
||||||
var v1 = rateService.toFiat(satoshis, 'USD');
|
var v1 = rateService.toFiat(satoshis, 'USD');
|
||||||
if (!v1) return null;
|
if (!v1) return null;
|
||||||
|
|
@ -44,7 +44,7 @@ angular.module('copayApp.services').factory('txFormatService', function($filter,
|
||||||
};
|
};
|
||||||
|
|
||||||
root.formatAlternativeStr = function(satoshis, cb) {
|
root.formatAlternativeStr = function(satoshis, cb) {
|
||||||
if (!satoshis) return;
|
if (isNaN(satoshis)) return;
|
||||||
var config = configService.getSync().wallet.settings;
|
var config = configService.getSync().wallet.settings;
|
||||||
|
|
||||||
var val = function() {
|
var val = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue