From f8a351a097e64ef97c7c2f8f02af165c1d3321f1 Mon Sep 17 00:00:00 2001 From: Kenan KARAER Date: Fri, 9 Jan 2026 00:10:31 +0300 Subject: [PATCH] =?UTF-8?q?hata=20d=C3=BCzeltme=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dashboard/site-settings-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dashboard/site-settings-form.tsx b/components/dashboard/site-settings-form.tsx index 53b3dde..90ddfaf 100644 --- a/components/dashboard/site-settings-form.tsx +++ b/components/dashboard/site-settings-form.tsx @@ -25,7 +25,7 @@ import { updateSiteSettings } from "@/app/(dashboard)/dashboard/settings/actions const settingsSchema = z.object({ site_title: z.string().min(2, "Site başlığı en az 2 karakter olmalıdır."), site_description: z.string().default(""), - contact_email: z.union([z.literal(""), z.string().email("Geçerli bir e-posta adresi giriniz.")]).default(""), + contact_email: z.string().email("Geçerli bir e-posta adresi giriniz.").optional().or(z.literal("")).default(""), contact_phone: z.string().default(""), currency: z.string().default("TRY"), })