Browse Source

native send z addr validation fix

v0.25
pbca26 7 years ago
parent
commit
07689ba9c4
  1. 5
      react/src/components/dashboard/sendCoin/sendCoin.js

5
react/src/components/dashboard/sendCoin/sendCoin.js

@ -549,10 +549,12 @@ class SendCoin extends React.Component {
(this.state.addressType === 'public' &&
this.state.sendTo &&
this.state.sendTo.length > 34 &&
this.state.sendFrom &&
Number(Number(this.state.amount) + 0.0001) > Number(this.state.sendFromAmount)) ||
(this.state.addressType === 'private' &&
this.state.sendTo &&
this.state.sendTo.length >= 34 &&
this.state.sendFrom &&
Number(Number(this.state.amount) + 0.0001) > Number(this.state.sendFromAmount))) {
Store.dispatch(
triggerToaster(
@ -565,7 +567,8 @@ class SendCoin extends React.Component {
}
if (this.state.sendTo.length > 34 &&
(!this.state.sendFrom || this.state.sendFrom.length < 34) &&
this.state.sendTo.substring(0, 2) === 'zc' &&
!this.state.sendFrom &&
this.props.ActiveCoin.mode === 'native') {
Store.dispatch(
triggerToaster(

Loading…
Cancel
Save