Skip to content

Commit

Permalink
validate emails
Browse files Browse the repository at this point in the history
  • Loading branch information
s-caso committed Oct 1, 2024
1 parent ae6e4d6 commit a6e921e
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,18 @@ const formConfig = {
hideOnReview: true,
},
},
'ui:validations': [
(errors, field) => {
if (
field?.email?.toLowerCase() !==
field?.confirmEmail?.toLowerCase()
) {
errors.confirmEmail?.addError(
'Sorry, your emails must match',
);
}
},
],
'view:confirmDuplicateData': {
'ui:description': DuplicateContactInfoModal,
},
Expand Down

0 comments on commit a6e921e

Please sign in to comment.