Skip to content

Commit

Permalink
fix: invalid form submit btn event error (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsajjadkazmii authored Mar 5, 2024
1 parent 5f93278 commit be5b0bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/register/RegistrationPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ const RegistrationPage = (props) => {

// returning if not valid
if (!isValid) {
if (simplifyRegistrationExpVariation === SIMPLIFIED_REGISTRATION_VARIATION
|| simplifyRegistrationExpVariation === DEFAULT_VARIATION) {
if (simplifyRegistrationExpVariation === DEFAULT_VARIATION) {
trackSimplifyRegistrationInvalidFormSubmitBtnClicked(simplifyRegistrationExpVariation, fieldErrors);
}
setErrorCode(prevState => ({ type: FORM_SUBMISSION_ERROR, count: prevState.count + 1 }));
Expand Down

0 comments on commit be5b0bb

Please sign in to comment.