This commit is contained in:
or-else
2018-09-23 19:11:03 +03:00
parent 64219b9343
commit 3ad8274ad8
+1 -5
View File
@@ -2717,7 +2717,7 @@ class ValidationView extends React.PureComponent {
super(props);
this.state = {
code: props.credCode
code: props.credCode || ''
};
this.handleChange = this.handleChange.bind(this);
@@ -2725,10 +2725,6 @@ class ValidationView extends React.PureComponent {
this.handleSubmit = this.handleSubmit.bind(this);
}
static getDerivedStateFromProps(nextProps, prevState) {
return {code: nextProps.credCode};
}
handleChange(e) {
this.setState({code: e.target.value});
}