fix type max
All checks were successful
Deploy Amap / deploy (push) Successful in 31s

This commit is contained in:
2026-02-20 18:16:10 +01:00
parent 41552a889f
commit 71a62e6d19

View File

@@ -57,7 +57,7 @@ export function ContractCheque({ inputForm, price, productor }: ContractChequePr
{ capfirst: true }, { capfirst: true },
)} )}
min={1} min={1}
max={paymentMethod?.max || 3} max={paymentMethod?.max && paymentMethod?.max !== "" ? Number(paymentMethod?.max) : 3}
{...inputForm.getInputProps(`cheque_quantity`)} {...inputForm.getInputProps(`cheque_quantity`)}
/> />
<Group grow> <Group grow>