diff --git a/src/component/walletSend/view.js b/src/component/walletSend/view.js index f1d33ae..e06e25b 100644 --- a/src/component/walletSend/view.js +++ b/src/component/walletSend/view.js @@ -82,7 +82,8 @@ class WalletSend extends React.PureComponent { render() { const { balance } = this.props; - const canSend = this.state.address && this.state.amount > 0 && this.state.address.trim().length > 0; + const canSend = + this.state.address && this.state.amount > 0 && this.state.address.trim().length > 0 && this.state.addressValid; return ( @@ -94,7 +95,7 @@ class WalletSend extends React.PureComponent { this.setState({ address: value, addressChanged: true, - addressValid: value.trim().length == 0 || regexAddress.test(value), + addressValid: value.trim().length === 0 || regexAddress.test(value), }) } onBlur={this.handleAddressInputBlur}