mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-27 21:58:08 -05:00
Fix not being able to send empty friend code
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user