Merge branch 'main' of gitea.aldon.fr:Mop/amap
All checks were successful
Deploy Amap / deploy (push) Successful in 35s

This commit is contained in:
Julien Aldon
2026-02-23 15:38:45 +01:00
5 changed files with 18 additions and 6 deletions

View File

@@ -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`)}
/>
<Group grow>

View File

@@ -109,7 +109,7 @@ export function ProductorModal({
existing ?? {
name,
details: "",
max: null,
max: "",
}
);
}),