mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-22 11:29:22 -05:00
fix: validation error in surveyClosedMessage (#864)
This commit is contained in:
@@ -10,9 +10,9 @@ export const ZSurveyThankYouCard = z.object({
|
||||
|
||||
export const ZSurveyClosedMessage = z
|
||||
.object({
|
||||
enabled: z.boolean(),
|
||||
heading: z.optional(z.string()),
|
||||
subheading: z.optional(z.string()),
|
||||
enabled: z.boolean().optional(),
|
||||
heading: z.string().optional(),
|
||||
subheading: z.string().optional(),
|
||||
})
|
||||
.nullable()
|
||||
.optional();
|
||||
@@ -252,7 +252,7 @@ export const ZSurvey = z.object({
|
||||
delay: z.number(),
|
||||
autoComplete: z.union([z.number(), z.null()]),
|
||||
closeOnDate: z.date().nullable(),
|
||||
surveyClosedMessage: ZSurveyClosedMessage.nullish(),
|
||||
surveyClosedMessage: ZSurveyClosedMessage.nullable(),
|
||||
verifyEmail: ZSurveyVerifyEmail.nullable(),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user