Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Return state so that the component can be updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii committed Aug 7, 2021
1 parent 4f60b93 commit e6c05b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/Register/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export default class Register extends Component {
const error = validate(nextProps, { name, value, regexp });
state = { ...state, [name]: { ...state[name], value, error, showError: false } };
}
return state;
}

state = {
Expand Down

0 comments on commit e6c05b6

Please sign in to comment.