Select all/no participant for expenses (Fix #3)

This commit is contained in:
Sebastien Castiel
2023-12-12 09:55:00 -05:00
parent 1ed533d01f
commit af3ed68f1c
3 changed files with 34 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ export const expenseFormSchema = z.object({
paidBy: z.string({ required_error: 'You must select a participant.' }),
paidFor: z
.array(z.string())
.min(1, 'The expense must be paid for at least 1 participant.'),
.min(1, 'The expense must be paid for at least one participant.'),
isReimbursement: z.boolean(),
})