From 28301203c4f14082557f9d5a7cbf8cb0258b4e38 Mon Sep 17 00:00:00 2001 From: nicocappabianca Date: Sat, 3 Oct 2020 17:44:43 -0300 Subject: [PATCH] update functionality --- src/components/admin-lte/send-receive/send.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/admin-lte/send-receive/send.js b/src/components/admin-lte/send-receive/send.js index 377026d..3e2d5a7 100644 --- a/src/components/admin-lte/send-receive/send.js +++ b/src/components/admin-lte/send-receive/send.js @@ -68,7 +68,7 @@ class Send extends React.Component { 0) { + if (_this.state.amountSat > 0) { _this.setState({ amountSat: (_this.state.amountSat / (_this.props.currentRate / 100)).toFixed(8) }) @@ -139,7 +139,7 @@ class Send extends React.Component { _this.setState({ sendCurrency: 'USD' }) - if(_this.state.amountSat > 0) { + if (_this.state.amountSat > 0) { _this.setState({ amountSat: (_this.state.amountSat * (_this.props.currentRate / 100)).toFixed(2) })