mirror of https://github.com/BTCPrivate/copay.git
fix formatAlternativeStr method in confirm.ts
This commit is contained in:
parent
7fb85cb468
commit
99e4d11ace
|
@ -331,9 +331,7 @@ export class ConfirmPage {
|
||||||
tx.amountStr = this.txFormatProvider.formatAmountStr(wallet.coin, tx.amount);
|
tx.amountStr = this.txFormatProvider.formatAmountStr(wallet.coin, tx.amount);
|
||||||
tx.amountValueStr = tx.amountStr.split(' ')[0];
|
tx.amountValueStr = tx.amountStr.split(' ')[0];
|
||||||
tx.amountUnitStr = tx.amountStr.split(' ')[1];
|
tx.amountUnitStr = tx.amountStr.split(' ')[1];
|
||||||
this.txFormatProvider.formatAlternativeStr(wallet.coin, tx.amount).then((v: string) => {
|
tx.alternativeAmountStr = this.txFormatProvider.formatAlternativeStr(wallet.coin, tx.amount);
|
||||||
tx.alternativeAmountStr = v;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateAmount();
|
updateAmount();
|
||||||
|
@ -382,9 +380,7 @@ export class ConfirmPage {
|
||||||
this.getTxp(_.clone(tx), wallet, opts.dryRun).then((txp: any) => {
|
this.getTxp(_.clone(tx), wallet, opts.dryRun).then((txp: any) => {
|
||||||
this.onGoingProcessProvider.set('calculatingFee', false);
|
this.onGoingProcessProvider.set('calculatingFee', false);
|
||||||
txp.feeStr = this.txFormatProvider.formatAmountStr(wallet.coin, txp.fee);
|
txp.feeStr = this.txFormatProvider.formatAmountStr(wallet.coin, txp.fee);
|
||||||
this.txFormatProvider.formatAlternativeStr(wallet.coin, txp.fee).then((value: string) => {
|
txp.alternativeFeeStr = this.txFormatProvider.formatAlternativeStr(wallet.coin, txp.fee);
|
||||||
txp.alternativeFeeStr = value;
|
|
||||||
});
|
|
||||||
|
|
||||||
let per = (txp.fee / (txp.amount + txp.fee) * 100);
|
let per = (txp.fee / (txp.amount + txp.fee) * 100);
|
||||||
txp.feeRatePerStr = per.toFixed(2) + '%';
|
txp.feeRatePerStr = per.toFixed(2) + '%';
|
||||||
|
|
Loading…
Reference in New Issue