diff --git a/apps/scandic-web/components/HotelReservation/MyStay/ModifyContact/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/ModifyContact/index.tsx index 74e1cf183..1650f14db 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/ModifyContact/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/ModifyContact/index.tsx @@ -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 }} />