fix: adjust selected delivery product priority order

This commit is contained in:
ValdiANS
2026-04-09 11:04:57 +07:00
parent 68c1655824
commit 095b1c5850
@@ -368,7 +368,9 @@ const DeliveryOrderFormModal = ({}: { initialValues?: Marketing }) => {
const currentProducts = deliveryOrderValues?.find(
(product) => product.id == id
);
setSelectedDeliveryProduct(values ?? currentProducts ?? null);
setSelectedDeliveryProduct(currentProducts ?? values ?? null);
if (id) {
setStep(2);
}