fixed settings default
This commit is contained in:
parent
2d8c770225
commit
9eeba8a069
|
|
@ -3,7 +3,9 @@ import { z } from "zod";
|
||||||
export const userSettings = z.object({
|
export const userSettings = z.object({
|
||||||
placeQuestionMark: z.boolean().default(false),
|
placeQuestionMark: z.boolean().default(false),
|
||||||
longPressOnDesktop: 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>;
|
export type UserSettings = z.infer<typeof userSettings>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue