fixed optional fields in website form

This commit is contained in:
Omer Sabic 2024-05-29 23:20:06 +02:00
parent 3bd87e9dfb
commit c0563306e3

View File

@ -6,12 +6,12 @@ export const schema = z.object({
primary_color_hex: z.string().length(7), primary_color_hex: z.string().length(7),
secondary_color_hex: z.string().length(7), secondary_color_hex: z.string().length(7),
text_color_hex: z.string().length(7), text_color_hex: z.string().length(7),
domain: z.string(), domain: z.string().optional(),
use_freebie: z.boolean(), use_freebie: z.boolean(),
freebie_name: z.string(), freebie_name: z.string().optional(),
freebie_url: z.string(), freebie_url: z.string().optional(),
freebie_image_url: z.string(), freebie_image_url: z.string().optional(),
freebie_text: z.string(), freebie_text: z.string().optional(),
title: z.string(), title: z.string(),
subtitle: z.string(), subtitle: z.string(),
}).superRefine((data, ctx) => { }).superRefine((data, ctx) => {