From 4f52300652830a4341a8e7f423e8146ff1bb7c82 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Fri, 6 Dec 2024 15:50:36 +0100 Subject: [PATCH] Add boundaries to activity in RO/TO schema --- frontend/src/lib/utils/schemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/utils/schemas.ts b/frontend/src/lib/utils/schemas.ts index 8551da21a..d21da0411 100644 --- a/frontend/src/lib/utils/schemas.ts +++ b/frontend/src/lib/utils/schemas.ts @@ -421,7 +421,7 @@ export const roToSchema = z.object({ motivation: z.string().optional(), ressources: z.string().optional(), pertinence: z.string().optional(), - activity: z.number().optional().default(0), + activity: z.number().min(0).max(4).optional().default(0), is_selected: z.boolean().optional().default(false), justification: z.string().optional() });