From def3c542c05f646931fc975efaab687c43ebd628 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 8 Nov 2021 16:27:32 -0600 Subject: [PATCH] RegistrationForm: prevent small error with password matching --- app/soapbox/features/auth_login/components/registration_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/auth_login/components/registration_form.js b/app/soapbox/features/auth_login/components/registration_form.js index 86e5812ff..a4c52ef62 100644 --- a/app/soapbox/features/auth_login/components/registration_form.js +++ b/app/soapbox/features/auth_login/components/registration_form.js @@ -90,7 +90,7 @@ class RegistrationForm extends ImmutablePureComponent { } onPasswordConfirmChange = e => { - const password = this.state.params.get('password'); + const password = this.state.params.get('password', ''); const passwordConfirmation = e.target.value; this.setState({ passwordConfirmation });