diff --git a/lib/build/emailpassword-shared7.js b/lib/build/emailpassword-shared7.js index b2430ed7c..d1db6600f 100644 --- a/lib/build/emailpassword-shared7.js +++ b/lib/build/emailpassword-shared7.js @@ -556,14 +556,14 @@ var FormBase = function (props) { ); var onInputChange = React.useCallback( function (field) { - try { - if (typeof field.value !== "string") { - throw new Error("".concat(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, function (os) { return genericComponentOverrideContext.__assign(genericComponentOverrideContext.__assign({}, os), { value: field.value, diff --git a/lib/ts/recipe/emailpassword/components/library/formBase.tsx b/lib/ts/recipe/emailpassword/components/library/formBase.tsx index 14d540e11..964ebed21 100644 --- a/lib/ts/recipe/emailpassword/components/library/formBase.tsx +++ b/lib/ts/recipe/emailpassword/components/library/formBase.tsx @@ -120,14 +120,14 @@ export const FormBase: React.FC> = (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(); },