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) }` + } +