mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-11 21:29:09 -05:00
Fix not being able to send empty friend code
This commit is contained in:
parent
430d32cb52
commit
74cff317f8
|
|
@ -51,7 +51,10 @@ const settingsActionSchema = z.object({
|
|||
safeJSONParse,
|
||||
z.array(z.enum(weapons)).max(LFG_WEAPON_POOL_MAX_LENGTH)
|
||||
),
|
||||
friendCode: z.preprocess(falsyToNull, z.string().regex(friendCodeRegExp)),
|
||||
friendCode: z.preprocess(
|
||||
falsyToNull,
|
||||
z.string().regex(friendCodeRegExp).nullable()
|
||||
),
|
||||
});
|
||||
|
||||
export const action: ActionFunction = async ({ request, context }) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user