Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Trim participant names (#1872)

Luke Vellac8ae52b48c07
diff --git a/apps/web/src/components/new-participant-modal.tsx b/apps/web/src/components/new-participant-modal.tsx
index 88dc5c752..6ef067c14 100644
--- a/apps/web/src/components/new-participant-modal.tsx
+++ b/apps/web/src/components/new-participant-modal.tsx
@@ -19,13 +19,13 @@ import { useUser } from "./user-provider";
const requiredEmailSchema = z.object({
requireEmail: z.literal(true),
- name: z.string().min(1).max(100),
+ name: z.string().trim().min(1).max(100),
email: z.string().email(),
});
const optionalEmailSchema = z.object({
requireEmail: z.literal(false),
- name: z.string().min(1).max(100),
+ name: z.string().trim().min(1).max(100),
email: z.string().email().or(z.literal("")),
});