|
|
@ -32,7 +32,7 @@ class Wallet extends Component { |
|
|
|
} = this.props |
|
|
|
|
|
|
|
const { modalOpen, qrCodeType } = this.state |
|
|
|
const usdAmount = parseFloat(btc.satoshisToUsd(balance.walletBalance, currentTicker.price_usd)) ? parseFloat(btc.satoshisToUsd(balance.walletBalance, currentTicker.price_usd)).toLocaleString() : '' |
|
|
|
const usdAmount = parseFloat(btc.satoshisToUsd(balance.walletBalance, currentTicker.price_usd)) |
|
|
|
|
|
|
|
const changeQrCode = () => { |
|
|
|
const qrCodeNum = this.state.qrCodeType === 1 ? 2 : 1 |
|
|
@ -82,7 +82,7 @@ class Wallet extends Component { |
|
|
|
<Isvg className={styles.bitcoinLogo} src={qrCode} /> |
|
|
|
</span> |
|
|
|
</h1> |
|
|
|
<span className={styles.usdValue}>≈ ${usdAmount}</span> |
|
|
|
<span className={styles.usdValue}>≈ ${usdAmount ? usdAmount.toLocaleString() : ''}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|