fix: joinedAt nullable in UserSchema, guard null in profile page

This commit is contained in:
2026-05-14 17:45:01 +02:00
parent 8ef3a300bc
commit 057ed3ccbf
3 changed files with 4 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ export const UserSchema = z.object({
customCss: z.string().nullable(),
local: z.boolean(),
isFollowedByViewer: z.boolean(),
joinedAt: z.coerce.date(),
joinedAt: z.coerce.date().nullable(),
});
export const MeSchema = UserSchema;