From 055536787556886f11252e7dff2f04abf8dd27a4 Mon Sep 17 00:00:00 2001 From: BrianJiang2021 Date: Mon, 25 Dec 2023 15:17:55 +0800 Subject: [PATCH] fix: address Id number --- apps/storefront/src/pages/quote/QuoteDraft.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/storefront/src/pages/quote/QuoteDraft.tsx b/apps/storefront/src/pages/quote/QuoteDraft.tsx index f34e26f5..899c006c 100644 --- a/apps/storefront/src/pages/quote/QuoteDraft.tsx +++ b/apps/storefront/src/pages/quote/QuoteDraft.tsx @@ -224,6 +224,9 @@ function QuoteDraft({ setOpenPage }: QuoteDraftProps) { state: shippingDefautAddress?.node?.state || '', zipCode: shippingDefautAddress?.node?.zipCode || '', phoneNumber: shippingDefautAddress?.node?.phoneNumber || '', + addressId: shippingDefautAddress?.node?.id + ? +shippingDefautAddress.node.id + : 0, } quoteInfo.shippingAddress = addressItem @@ -245,6 +248,9 @@ function QuoteDraft({ setOpenPage }: QuoteDraftProps) { state: billingDefautAddress?.node?.state || '', zipCode: billingDefautAddress?.node?.zipCode || '', phoneNumber: billingDefautAddress?.node?.phoneNumber || '', + addressId: billingDefautAddress?.node?.id + ? +billingDefautAddress.node.id + : 0, } quoteInfo.billingAddress = addressItem