show less than symbol if fee less than 0.00
This commit is contained in:
parent
668b69f19c
commit
dd72c3b46e
1 changed files with 4 additions and 1 deletions
|
|
@ -333,10 +333,13 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
|||
txp.feeStr = txFormatService.formatAmountStr(wallet.coin, txp.fee);
|
||||
txFormatService.formatAlternativeStr(wallet.coin, txp.fee, function(v) {
|
||||
txp.alternativeFeeStr = v;
|
||||
if (txp.alternativeFeeStr.substring(0, 4) == '0.00')
|
||||
txp.alternativeFeeStr = '< ' + txp.alternativeFeeStr;
|
||||
});
|
||||
|
||||
var per = (txp.fee / (txp.amount + txp.fee) * 100);
|
||||
txp.feeRatePerStr = per.toFixed(2) + '%';
|
||||
var perString = per.toFixed(2);
|
||||
txp.feeRatePerStr = (perString == '0.00' ? '< ' : '') + perString + '%';
|
||||
txp.feeToHigh = per > FEE_TOO_HIGH_LIMIT_PER;
|
||||
|
||||
tx.txp[wallet.id] = txp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue