From 265e383705e16bade6570e1769103d35e3498f1c Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Mon, 11 Nov 2019 20:21:00 +0100 Subject: [PATCH] fix: allow username submission after failure If the server rejects a username submission, the submit button became stuck as disabled. This ensures that new (valid) input will unlock the button. --- client/src/components/settings/Username.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/settings/Username.js b/client/src/components/settings/Username.js index fdd9e7f39f..713d03adcd 100644 --- a/client/src/components/settings/Username.js +++ b/client/src/components/settings/Username.js @@ -101,7 +101,8 @@ class UsernameSettings extends Component { { formValue: newValue, isFormPristine: username === newValue, - characterValidation: this.validateFormInput(newValue) + characterValidation: this.validateFormInput(newValue), + submitClicked: false }, () => this.state.isFormPristine || this.state.characterValidation.error