We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8427428 commit 3aadcbaCopy full SHA for 3aadcba
apps/builder/app/builder/features/project-settings/section-general.tsx
@@ -51,9 +51,12 @@ export const SectionGeneral = () => {
51
);
52
const siteNameId = useId();
53
const contactEmailId = useId();
54
+ const contactEmail = (meta.contactEmail ?? "").trim();
55
const contactEmailError =
- (meta.contactEmail ?? "").trim().length === 0 ||
56
- Email.safeParse(meta.contactEmail).success
+ contactEmail.length === 0 ||
57
+ contactEmail
58
+ .split(",")
59
+ .every((email) => Email.safeParse(email.trim()).success)
60
? undefined
61
: "Contact email is invalid.";
62
const assets = useStore($assets);
0 commit comments