fix(recipient): filter invalid emails in suggestions (#2510)

This commit is contained in:
Abdul Alim 2026-03-18 10:43:44 +07:00 committed by GitHub
parent 455fef70bd
commit f48aa84c9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,7 +8,7 @@ export const ZGetRecipientSuggestionsResponseSchema = z.object({
results: z.array(
z.object({
name: z.string().nullable(),
email: z.string().email(),
email: z.union([z.string().email(), z.literal('')]),
}),
),
});