From ee78fb3ba3115466681550fc0e28e7949dd7c12f Mon Sep 17 00:00:00 2001 From: Kenan KARAER Date: Fri, 9 Jan 2026 00:07:10 +0300 Subject: [PATCH] =?UTF-8?q?hata=20d=C3=BCzeltme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dashboard/site-settings-form.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/dashboard/site-settings-form.tsx b/components/dashboard/site-settings-form.tsx index 890b9eb..53b3dde 100644 --- a/components/dashboard/site-settings-form.tsx +++ b/components/dashboard/site-settings-form.tsx @@ -24,9 +24,9 @@ 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().optional(), - contact_email: z.string().email("Geçerli bir e-posta adresi giriniz.").optional().or(z.literal("")), - contact_phone: z.string().optional(), + site_description: z.string().default(""), + contact_email: z.union([z.literal(""), z.string().email("Geçerli bir e-posta adresi giriniz.")]).default(""), + contact_phone: z.string().default(""), currency: z.string().default("TRY"), })