Browse Source

better decode error wording

v0.25
pbca26 7 years ago
parent
commit
f2d63a8bcc
  1. 7
      react/src/components/dashboard/sendCoin/sendCoin.render.js
  2. 3
      react/src/components/login/login.render.js

7
react/src/components/dashboard/sendCoin/sendCoin.render.js

@ -363,7 +363,12 @@ export const SendRender = function() {
<div>
<strong className="text-capitalize">{ translate('API.ERROR_SM') }</strong>
</div>
<div>{ this.state.lastSendToResponse.result }</div>
{ (this.state.lastSendToResponse.result.toLowerCase().indexOf('decode error') > -1) &&
<div>Your history contains shielded transactions(z).<br />Please move funds to another transparent address in order to use Lite mode.</div>
}
{ this.state.lastSendToResponse.result.toLowerCase().indexOf('decode error') === -1 &&
<div>{ this.state.lastSendToResponse.result }</div>
}
{ this.props.ActiveCoin.mode === 'spv' &&
this.state.lastSendToResponse.raw &&
this.state.lastSendToResponse.raw.txid &&

3
react/src/components/login/login.render.js

@ -201,8 +201,7 @@ const LoginRender = function() {
<button
type="button"
className="btn btn-primary btn-block margin-top-20"
onClick={ this.loginSeed }
disabled={ !this.state.loginPassphrase || !this.state.loginPassphrase.length }>
onClick={ this.loginSeed }>
{ translate('INDEX.SIGN_IN') }
</button>
<div className="form-group form-material floating">

Loading…
Cancel
Save