From ca331a0bf4e1906b488b7b248f0cbd70bddf4171 Mon Sep 17 00:00:00 2001 From: nicocappabianca Date: Wed, 30 Sep 2020 22:11:15 -0300 Subject: [PATCH] fix issues --- src/components/admin-lte/index.js | 2 +- src/components/admin-lte/send-receive/send.js | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/admin-lte/index.js b/src/components/admin-lte/index.js index 9ed4f90..efe9280 100644 --- a/src/components/admin-lte/index.js +++ b/src/components/admin-lte/index.js @@ -43,7 +43,7 @@ class AdminLTEPage extends React.Component { menuIsHide: false, walletInfo: {}, inFetch: false, - usdBalance: 0, + usdBalance: 0, currentRate: 0 } diff --git a/src/components/admin-lte/send-receive/send.js b/src/components/admin-lte/send-receive/send.js index 504ad1f..5d57e9b 100644 --- a/src/components/admin-lte/send-receive/send.js +++ b/src/components/admin-lte/send-receive/send.js @@ -81,12 +81,12 @@ class Send extends React.Component { } />
-

- { _this.state.sendCurrency === 'BCH' - ? `USD: ${ (_this.state.amountSat * (_this.props.currentRate / 100).toFixed(2)) }` - : `BCH: ${ (_this.state.amountSat / (_this.props.currentRate / 100).toFixed(2)) }` - } -

+

+ { _this.state.sendCurrency === 'BCH' + ? `USD: ${ (_this.state.amountSat * (_this.props.currentRate / 100)).toFixed(2) }` + : `BCH: ${ (_this.state.amountSat / (_this.props.currentRate / 100)).toFixed(8) }` + } +