Skip to content

Commit

Permalink
Testing email-verification workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbadala committed Oct 27, 2023
1 parent 883662f commit 494c5c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions lib/build/emailpassword-shared7.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions lib/ts/recipe/emailpassword/components/library/formBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ export const FormBase: React.FC<FormBaseProps<any>> = (props) => {

const onInputChange = useCallback(
(field: APIFormField) => {
try {
if (typeof field.value !== "string") {
throw new Error(`${field.id} value must be a string`);
}
} catch (error) {
console.error(error);
return props.onError("SOMETHING_WENT_WRONG_ERROR");
}
// try {
// if (typeof field.value !== "string") {
// throw new Error(`${field.id} value must be a string`);
// }
// } catch (error) {
// console.error(error);
// return props.onError("SOMETHING_WENT_WRONG_ERROR");
// }
updateFieldState(field.id, (os) => ({ ...os, value: field.value, error: undefined }));
props.clearError();
},
Expand Down

0 comments on commit 494c5c0

Please sign in to comment.