Skip to content

[BUG] Address is displayed incorrectly in orders view in admin panel #347

Closed
@kaysond

Description

Describe the bug
The address in the orderEdit component is not displayed correctly

To Reproduce
Steps to reproduce the behavior:

  1. Create an order
  2. Click on the order in the admin panel

Expected behavior
Order should be displayed correctly

Screenshots
image

Background (please complete the following information):

  • NodeJS Version - 20.7.0
  • Postgres Version - 15.4
  • EverShop Version - rc7
  • OS: [e.g. Window, Ubuntu, Mac-OS] - Debian
  • Browser [e.g. Chrome, Safari] - FF

Additional context

<Card.Session title="Shipping Address">
<div>
<span>{shippingAddress.fullName}</span>
</div>
<div>
<span>{shippingAddress.address1}</span>
</div>
<div>
<span>{`${shippingAddress.postcode}, ${shippingAddress.city}`}</span>
</div>
<div>
<span>{`${shippingAddress.province.name}, ${shippingAddress.country.name}`}</span>
</div>
<div>
<span>{shippingAddress.telephone}</span>
</div>

shippingAddress.address1 does not show up at all.

This might be different based on locale, but for North America, you would want:

   <div> 
     <span>{shippingAddress.fullName}</span> 
   </div> 
   <div> 
     <span>{shippingAddress.address1}</span> 
   </div> 
   <div> 
     <span>{`${shippingAddress.city}, ${shippingAddress.province.name}`}</span> 
   </div> 
   <div> 
     <span>{`${shippingAddress.postcode}, ${shippingAddress.country.name}`}</span> 
   </div> 
   <div> 
     <span>{shippingAddress.telephone}</span> 
   </div> 

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions