fix cheque validation
Some checks failed
Deploy Amap / deploy (push) Failing after 15s

This commit is contained in:
2026-02-20 18:13:47 +01:00
parent 85a70da07d
commit 41552a889f
3 changed files with 15 additions and 3 deletions

View File

@@ -58,6 +58,11 @@ export default function Productors() {
async (productor: ProductorInputs) => {
await createProductorMutation.mutateAsync({
...productor,
payment_methods: productor.payment_methods.map((payment) =>( {
name: payment.name,
details: payment.details,
max: payment.max === "" ? null : payment.max
}))
});
closeModal();
},
@@ -69,7 +74,14 @@ export default function Productors() {
if (!id) return;
await editProductorMutation.mutateAsync({
id: id,
productor: productor,
productor: {
...productor,
payment_methods: productor.payment_methods.map((payment) =>( {
name: payment.name,
details: payment.details,
max: payment.max === "" ? null : payment.max
}))
},
});
closeModal();
},