diff --git a/src/core/client/auth/containers/SignUpContainer.tsx b/src/core/client/auth/containers/SignUpContainer.tsx index 8be2d84ed..a4400863f 100644 --- a/src/core/client/auth/containers/SignUpContainer.tsx +++ b/src/core/client/auth/containers/SignUpContainer.tsx @@ -17,8 +17,8 @@ interface SignUpContainerProps { class SignUpContainer extends Component { private onSubmit: SignUpForm["onSubmit"] = async (input, form) => { try { - return await this.props.signUp(input); - form.reset(); + await this.props.signUp(input); + return form.reset(); } catch (error) { return { [FORM_ERROR]: error.message }; } diff --git a/src/core/client/auth/test/__snapshots__/signIn.spec.tsx.snap b/src/core/client/auth/test/__snapshots__/signIn.spec.tsx.snap index 33a6f001a..2f6fa4225 100644 --- a/src/core/client/auth/test/__snapshots__/signIn.spec.tsx.snap +++ b/src/core/client/auth/test/__snapshots__/signIn.spec.tsx.snap @@ -25,14 +25,27 @@ exports[`accepts correct password 1`] = ` Email Address +
+ + + This field is required. + +
+
+ + + This field is required. + +
+
+ + + This field is required. + +
+
+ + + This field is required. + +