Skip to content

Commit 2e272fa

Browse files
committed
Fixed: typo when checking for order status(hotwax#472)
1 parent c96d07d commit 2e272fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/order.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const removeKitComponents = (parts: any) => {
126126

127127
const getOrderStatus = (order: any, part: any, orderRouteSegment: any) => {
128128
if(order.statusId === "ORDER_COMPLETED") {
129-
return part.shipmentMethodEnum.shipmentMethodTypeId === "STOREPICKUP" ? "Picked up" : "Completed"
129+
return part.shipmentMethodEnum.shipmentMethodEnumId === "STOREPICKUP" ? "Picked up" : "Completed"
130130
}
131131

132132
if(orderRouteSegment?.length) {

0 commit comments

Comments
 (0)