Skip to content

Commit

Permalink
fix: address Id number
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 authored and libruce committed Dec 25, 2023
1 parent 785894b commit 0555367
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/storefront/src/pages/quote/QuoteDraft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0555367

Please sign in to comment.