fix broken form validation on emails

This commit is contained in:
KMKoushik
2025-04-21 10:32:20 +10:00
parent 84de7a1f65
commit c5aa5a5ff0
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ export const DeleteTeamMember: React.FC<{
<DialogDescription> <DialogDescription>
{self {self
? "Are you sure you want to leave the team? This action cannot be undone." ? "Are you sure you want to leave the team? This action cannot be undone."
: 'Are you sure you want to remove"{teamUser.email}" from the team? This action cannot be undone.'} : `Are you sure you want to remove ${teamUser.email} from the team? This action cannot be undone.`}
</DialogDescription> </DialogDescription>
</DialogHeader> </DialogHeader>
<div className="flex justify-end gap-4 mt-6"> <div className="flex justify-end gap-4 mt-6">

View File

@@ -5,7 +5,7 @@ import { z } from "@hono/zod-openapi";
*/ */
export const emailSchema = z export const emailSchema = z
.object({ .object({
to: z.string().email().or(z.array(z.string().email())), to: z.string().or(z.array(z.string())),
from: z.string().email(), from: z.string().email(),
subject: z.string().min(1).optional().openapi({ subject: z.string().min(1).optional().openapi({
description: "Optional when templateId is provided", description: "Optional when templateId is provided",