diff --git a/apps/web/core/components/account/auth-forms/form-root.tsx b/apps/web/core/components/account/auth-forms/form-root.tsx index 4eacb4704a2..35ad625cbbf 100644 --- a/apps/web/core/components/account/auth-forms/form-root.tsx +++ b/apps/web/core/components/account/auth-forms/form-root.tsx @@ -91,7 +91,7 @@ export const AuthFormRoot = observer(function AuthFormRoot(props: TAuthFormRoot) .generateUniqueCode(payload) .then(() => ({ code: "" })) .catch((error) => { - const errorhandler = authErrorHandler(error?.error_code.toString()); + const errorhandler = authErrorHandler(error?.error_code?.toString()); if (errorhandler?.type) setErrorInfo(errorhandler); throw error; });