Merge pull request #2239 from sonvir249/bug/fix-form-errors
Issue-2238: Fixes the error messages on various forms.
This commit is contained in:
3 files changed
+14
-3
No files matched your search
@@ -185,7 +185,7 @@ const ForgotPassword = () => {
|
||||
value={form.email}
|
||||
onChange={handleChange}
|
||||
error={errors.email ? true : false}
|
||||
helperText={errors.email}
|
||||
helperText={t(errors.email)}
|
||||
/>
|
||||
<Button
|
||||
variant="contained"
|
||||
|
||||
@@ -71,7 +71,7 @@ function StepTwo({ form, errors, onSubmit, onChange, onBack }) {
|
||||
helperText={errors.email && (
|
||||
errors.email.includes("required") ? t("authRegisterEmailRequired") :
|
||||
errors.email.includes("valid email") ? t("authRegisterEmailInvalid") :
|
||||
errors.email
|
||||
t(errors.email)
|
||||
)}
|
||||
ref={inputRef}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user