Merged in fix/BOOK-718-error-message-email (pull request #3416)
fix(BOOK-718): add error message to email modify contact * fix(BOOK-718): add error message to email modify contact Approved-by: Erik Tiekstra
This commit is contained in:
@@ -13,7 +13,10 @@ import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import useLang from "@/hooks/useLang"
|
||||
import { getFormattedCountryList } from "@/utils/countries"
|
||||
import { getErrorMessage } from "@/utils/getErrorMessage"
|
||||
import {
|
||||
formatFormErrorMessage,
|
||||
getErrorMessage,
|
||||
} from "@/utils/getErrorMessage"
|
||||
|
||||
import styles from "./modifyContact.module.css"
|
||||
|
||||
@@ -87,6 +90,7 @@ export default function ModifyContact({
|
||||
})}
|
||||
name="email"
|
||||
type="email"
|
||||
errorFormatter={formatFormErrorMessage}
|
||||
registerOptions={{ required: true }}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user