Skip to content

Commit 25d7470

Browse files
nit
1 parent 59b343d commit 25d7470

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

packages/template-retail-react-app/app/pages/account/order-detail.jsx

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const AccountOrderDetail = () => {
124124
{
125125
parameters: {
126126
orderNo: params.orderNo,
127-
expand: 'oms'
127+
expand: 'oms, oms_shipments'
128128
}
129129
},
130130
{
@@ -239,11 +239,9 @@ const AccountOrderDetail = () => {
239239
values={{orderNumber: order.orderNo}}
240240
/>
241241
</Text>
242-
{(order.status || order.omsData?.status) && (
243-
<Badge colorScheme="green">
244-
{order.status || order.omsData?.status}
245-
</Badge>
246-
)}
242+
<Badge colorScheme="green">
243+
{order.status || order.omsData?.status}
244+
</Badge>
247245
</Stack>
248246
</Stack>
249247
) : (
@@ -394,16 +392,12 @@ const AccountOrderDetail = () => {
394392
)}
395393
</Heading>
396394
<Box>
397-
{((shipment.shippingAddress.firstName &&
398-
shipment.shippingAddress.lastName) ||
399-
shipment.shippingAddress.fullName) && (
400-
<Text fontSize="sm">
401-
{shipment.shippingAddress.firstName &&
402-
shipment.shippingAddress.lastName
403-
? `${shipment.shippingAddress.firstName} ${shipment.shippingAddress.lastName}`
404-
: shipment.shippingAddress.fullName}
405-
</Text>
406-
)}
395+
<Text fontSize="sm">
396+
{shipment.shippingAddress.firstName &&
397+
shipment.shippingAddress.lastName
398+
? `${shipment.shippingAddress.firstName} ${shipment.shippingAddress.lastName}`
399+
: shipment.shippingAddress.fullName}
400+
</Text>
407401
<Text fontSize="sm">
408402
{shipment.shippingAddress.address1}
409403
</Text>

0 commit comments

Comments
 (0)