fixed settings default

This commit is contained in:
MasterGordon 2024-10-27 19:55:18 +01:00
parent 2d8c770225
commit 9eeba8a069
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@ import { z } from "zod";
export const userSettings = z.object({
placeQuestionMark: z.boolean().default(false),
longPressOnDesktop: z.boolean().default(false),
showRevealAnimation: z.boolean().refine((v) => typeof v === "undefined" || v),
showRevealAnimation: z
.boolean()
.transform((v) => typeof v === "undefined" || v),
});
export type UserSettings = z.infer<typeof userSettings>;