fix(send-amount-value-issue): put zeros on amount suffix

This commit is contained in:
eliabejr 2019-01-22 16:07:59 -03:00
parent d87740e956
commit 50120928f9
1 changed files with 3 additions and 1 deletions

View File

@ -186,13 +186,15 @@ export class SendView extends PureComponent<Props, State> {
feeType,
} = this.state;
const fixedAmount = amount === '' ? '0.00' : amount;
const zecBalance = formatNumber({ value: balance, append: 'ZEC ' });
const zecBalanceInUsd = formatNumber({
value: new BigNumber(balance).times(zecPrice).toNumber(),
append: 'USD $',
});
const valueSent = formatNumber({
value: new BigNumber(amount).toNumber(),
value: new BigNumber(fixedAmount).toFormat(2),
append: 'ZEC ',
});
const valueSentInUsd = formatNumber({