From 43c4d80d781d6738b4870bd0990b9951f6e5bb4d Mon Sep 17 00:00:00 2001 From: Ariel Barreiro Date: Sat, 7 Aug 2021 00:27:18 -0300 Subject: [PATCH] Return state so that the component can be updated --- src/routes/Register/component.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/Register/component.js b/src/routes/Register/component.js index 2c3b51b1c..75018fb03 100644 --- a/src/routes/Register/component.js +++ b/src/routes/Register/component.js @@ -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 = {