From 2c4701939dd4345b2116a0a61cc9c913383aeffd Mon Sep 17 00:00:00 2001 From: SEAN Date: Thu, 26 Feb 2026 16:45:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20zod=20v4=20z.literal()=20API=20=ED=98=B8?= =?UTF-8?q?=ED=99=98=20(SignupPage)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit errorMap은 zod v4에서 지원하지 않으므로 message로 교체. Co-Authored-By: Claude Opus 4.6 --- react/src/features/auth/pages/SignupPage.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/react/src/features/auth/pages/SignupPage.tsx b/react/src/features/auth/pages/SignupPage.tsx index 3159cf6..95bfa6d 100644 --- a/react/src/features/auth/pages/SignupPage.tsx +++ b/react/src/features/auth/pages/SignupPage.tsx @@ -30,9 +30,7 @@ const signupSchema = z .string() .min(1, "전화번호를 입력해주세요.") .regex(phoneRegex, "올바른 전화번호 형식이 아닙니다."), - agree: z.literal(true, { - errorMap: () => ({ message: "약관에 동의해주세요." }), - }), + agree: z.literal(true, { message: "약관에 동의해주세요." }), }) .refine((data) => data.password === data.passwordConfirm, { message: "비밀번호가 일치하지 않습니다.",