Skip to content

Commit

Permalink
Fix verification code bug (#245)
Browse files Browse the repository at this point in the history
* fix Verfication code bug
  • Loading branch information
QinZiWeiS authored Oct 5, 2022
1 parent 8828fc2 commit a03ac3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/routes/User/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export default class LoginPage extends Component {
this.ChildRef = React.createRef();
}

componentDidMount() {
this.ChildRef.current.handleChange();
}

handleSubmit = (err, values) => {

const { dispatch } = this.props;
Expand Down Expand Up @@ -68,6 +72,8 @@ export default class LoginPage extends Component {
return this.state.codeError ? <span /> : <span className={styles.codeError} id='codeError'>Please enter correct verify code!</span>
}



render() {
const { submitting } = this.props;
return (
Expand Down

0 comments on commit a03ac3b

Please sign in to comment.