Skip to content

Commit b0cc9ce

Browse files
committed
fix: align compareParamsSchema refine message with test expectation
1 parent 88ed0e5 commit b0cc9ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/validations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export const compareParamsSchema = z
338338
.regex(GITHUB_USERNAME_REGEX, { message: 'Invalid GitHub username for user2' }),
339339
})
340340
.refine((data) => data.user1.toLowerCase() !== data.user2.toLowerCase(), {
341-
message: 'Cannot compare a user with themselves',
341+
message: 'Cannot compare a user with themselves.',
342342
path: ['user2'],
343343
});
344344

0 commit comments

Comments
 (0)