From 71a62e6d19236e027ec474331ba8c7e24a076537 Mon Sep 17 00:00:00 2001 From: JulienAldon Date: Fri, 20 Feb 2026 18:16:10 +0100 Subject: [PATCH] fix type max --- frontend/src/components/PaymentMethods/Cheque/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/PaymentMethods/Cheque/index.tsx b/frontend/src/components/PaymentMethods/Cheque/index.tsx index 64fde29..ef8731e 100644 --- a/frontend/src/components/PaymentMethods/Cheque/index.tsx +++ b/frontend/src/components/PaymentMethods/Cheque/index.tsx @@ -57,7 +57,7 @@ export function ContractCheque({ inputForm, price, productor }: ContractChequePr { capfirst: true }, )} min={1} - max={paymentMethod?.max || 3} + max={paymentMethod?.max && paymentMethod?.max !== "" ? Number(paymentMethod?.max) : 3} {...inputForm.getInputProps(`cheque_quantity`)} />