From 99e4d11ace93ef9f6c2b7da9a948da089efe31ea Mon Sep 17 00:00:00 2001 From: JDonadio Date: Thu, 9 Nov 2017 16:45:37 -0300 Subject: [PATCH] fix formatAlternativeStr method in confirm.ts --- src/pages/send/confirm/confirm.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/send/confirm/confirm.ts b/src/pages/send/confirm/confirm.ts index 7159a01d5..a31a05df4 100644 --- a/src/pages/send/confirm/confirm.ts +++ b/src/pages/send/confirm/confirm.ts @@ -331,9 +331,7 @@ export class ConfirmPage { tx.amountStr = this.txFormatProvider.formatAmountStr(wallet.coin, tx.amount); tx.amountValueStr = tx.amountStr.split(' ')[0]; tx.amountUnitStr = tx.amountStr.split(' ')[1]; - this.txFormatProvider.formatAlternativeStr(wallet.coin, tx.amount).then((v: string) => { - tx.alternativeAmountStr = v; - }); + tx.alternativeAmountStr = this.txFormatProvider.formatAlternativeStr(wallet.coin, tx.amount); } updateAmount(); @@ -382,9 +380,7 @@ export class ConfirmPage { this.getTxp(_.clone(tx), wallet, opts.dryRun).then((txp: any) => { this.onGoingProcessProvider.set('calculatingFee', false); txp.feeStr = this.txFormatProvider.formatAmountStr(wallet.coin, txp.fee); - this.txFormatProvider.formatAlternativeStr(wallet.coin, txp.fee).then((value: string) => { - txp.alternativeFeeStr = value; - }); + txp.alternativeFeeStr = this.txFormatProvider.formatAlternativeStr(wallet.coin, txp.fee); let per = (txp.fee / (txp.amount + txp.fee) * 100); txp.feeRatePerStr = per.toFixed(2) + '%';