From e02f6630910bb7dbecff0aa9eec937b9c02f1f52 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 28 Apr 2023 11:44:51 +0700
Subject: fix checkout

---
 src/lib/checkout/components/Checkout.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/checkout/components/Checkout.jsx')

diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx
index eee679fd..0a8b072a 100644
--- a/src/lib/checkout/components/Checkout.jsx
+++ b/src/lib/checkout/components/Checkout.jsx
@@ -122,8 +122,8 @@ const Checkout = () => {
       quantity: product.quantity
     }))
     let data = {
-      partner_shipping_id: selectedAddress.shipping.id,
-      partner_invoice_id: selectedAddress.invoicing.id,
+      partner_shipping_id: auth.partnerId,
+      partner_invoice_id: auth.partnerId,
       order_line: JSON.stringify(productOrder),
       type: 'sale_order'
     }
-- 
cgit v1.2.3

