Update: txFormatService.formatAmount returns 0.00 for 0 satoshi values
This commit is contained in:
parent
1bf28d6e63
commit
1d44006788
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ angular.module('copayApp.services').factory('txFormatService', function($filter,
|
||||||
var opts = {
|
var opts = {
|
||||||
fullPrecision: !!fullPrecision
|
fullPrecision: !!fullPrecision
|
||||||
};
|
};
|
||||||
return this.Utils.formatAmount(satoshis, config.unitCode, opts);
|
return parseInt(satoshis) == 0 ? '0.00' : this.Utils.formatAmount(satoshis, config.unitCode, opts);
|
||||||
};
|
};
|
||||||
|
|
||||||
root.formatAmountStr = function(coin, satoshis) {
|
root.formatAmountStr = function(coin, satoshis) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue