diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-07-10 10:00:33 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-07-10 10:00:33 +0700 |
| commit | 581334e8d077916c3a9ab87fd5b6e6b5126aba12 (patch) | |
| tree | 14b1cdaec367c0b3487f9b232a94030d2cba259f | |
| parent | ead27f576ea73bb4625fea839ee78c4a8db0d4e9 (diff) | |
add auth id
| -rw-r--r-- | src/lib/cart/components/Cart.jsx | 4 | ||||
| -rw-r--r-- | src/lib/checkout/components/Checkout.jsx | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/cart/components/Cart.jsx b/src/lib/cart/components/Cart.jsx index 224d02d1..41efffe9 100644 --- a/src/lib/cart/components/Cart.jsx +++ b/src/lib/cart/components/Cart.jsx @@ -111,7 +111,9 @@ const Cart = () => { selected: true }).then(() => { getCart().then(() => { - setPromotionType(false) + if(promotionActiveId){ + setPromotionType(false) + } }) }) } diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx index b30f7e43..f5b27cfb 100644 --- a/src/lib/checkout/components/Checkout.jsx +++ b/src/lib/checkout/components/Checkout.jsx @@ -179,6 +179,7 @@ const Checkout = () => { let data = { partner_shipping_id: auth.partnerId, partner_invoice_id: auth.partnerId, + user_id : auth.id, order_line: JSON.stringify(productOrder), delivery_amount: biayaKirim, carrier_id: selectedCarrierId, |
