We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ff3b32 commit 22e58e8Copy full SHA for 22e58e8
src/schemas/gathering/opinionForm.schema.ts
@@ -49,6 +49,14 @@ export const preferredCategoriesSchema = z
49
.refine((data) => !isUndefined(data.first), {
50
message: "최소 1개의 음식을 선택해주세요",
51
path: ["first"],
52
+ })
53
+ .refine((data) => !data.second || data.first, {
54
+ message: "1순위를 먼저 선택해주세요",
55
+ path: ["second"],
56
57
+ .refine((data) => !data.third || data.second, {
58
+ message: "2순위를 먼저 선택해주세요",
59
+ path: ["third"],
60
});
61
62
export const opinionFormSchema = z.object({
0 commit comments