Skip to content

Commit

Permalink
fix: inputNames 변수 스키마에 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
grapefruit13 committed Mar 30, 2024
1 parent 0e71a8e commit 9bf541a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apis/users/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const PasswordSchema = z
.regex(REGEX.password, ERROR_MESSAGE.password.regex),
[passwordConfirm]: z.string(),
})
.refine((data) => data.password === data.passwordConfirm, {
.refine((data) => data[password] === data[passwordConfirm], {
path: [passwordConfirm],
message: ERROR_MESSAGE.password.refine,
});

0 comments on commit 9bf541a

Please sign in to comment.