Browse Source

corrected address length validation rule

all-modes
pbca26 8 years ago
parent
commit
6a2185afee
  1. 2
      react/src/components/dashboard/sendCoin/sendCoin.js
  2. 2
      react/src/translate/en.js

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

@ -801,7 +801,7 @@ class SendCoin extends React.Component {
validateSendFormData() { validateSendFormData() {
let valid = true; let valid = true;
if (!this.state.sendTo || this.state.sendTo.length < 64) { if (!this.state.sendTo || this.state.sendTo.length < 34) {
Store.dispatch( Store.dispatch(
triggerToaster( triggerToaster(
translate('SEND.SEND_TO_ADDRESS_MIN_LENGTH'), translate('SEND.SEND_TO_ADDRESS_MIN_LENGTH'),

2
react/src/translate/en.js

@ -522,7 +522,7 @@ export const _lang = {
'ENTER_AN_ADDRESS': 'Enter an address', 'ENTER_AN_ADDRESS': 'Enter an address',
'YOU_PICKED_OPT': 'You picked option', 'YOU_PICKED_OPT': 'You picked option',
'PLEASE_WAIT': 'Please wait', 'PLEASE_WAIT': 'Please wait',
'SEND_TO_ADDRESS_MIN_LENGTH': 'Send to address must be at least 64 characters long', 'SEND_TO_ADDRESS_MIN_LENGTH': 'Send to address must be at least 34 characters long',
'AMOUNT_POSITIVE_NUMBER': 'Amount must be a positive number', 'AMOUNT_POSITIVE_NUMBER': 'Amount must be a positive number',
'FEE_POSITIVE_NUMBER': 'Fee must be a positive number', 'FEE_POSITIVE_NUMBER': 'Fee must be a positive number',
'TOTAL_AMOUNT_POSITIVE_NUMBER': 'Total amount (amount - fee) must be a positive number', 'TOTAL_AMOUNT_POSITIVE_NUMBER': 'Total amount (amount - fee) must be a positive number',

Loading…
Cancel
Save