mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 23:58:36 -05:00
More helpful message when FC validation fails
This commit is contained in:
@@ -26,7 +26,12 @@ export const frontPageSchema = z.union([
|
||||
}),
|
||||
z.object({
|
||||
_action: _action("ADD_FRIEND_CODE"),
|
||||
friendCode: z.string().regex(FRIEND_CODE_REGEXP),
|
||||
friendCode: z
|
||||
.string()
|
||||
.regex(FRIEND_CODE_REGEXP, {
|
||||
message:
|
||||
"Invalid friend code. Did you include dashes? Example: 1234-5678-9012",
|
||||
}),
|
||||
}),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user