@propeller-commerce/propeller-v2-react-ui 0.4.24 → 0.4.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/pure.cjs CHANGED
@@ -433,11 +433,13 @@ function OrderSummary(props) {
433
433
  const showRemarks = props.showRemarks !== void 0 ? props.showRemarks : true;
434
434
  const orderNumber = order?.id || "";
435
435
  const orderDate = order?.createdAt || "";
436
- const orderStatus = order?.status || "";
436
+ const rawStatus = order?.status || "";
437
+ const orderStatus = rawStatus ? props.statusLabels?.[rawStatus] || rawStatus : "";
437
438
  const orderTotal = Number(order?.total?.net || 0);
438
439
  const orderReference = order?.reference || "";
439
440
  const orderRemarks = order?.remarks || "";
440
- const paymentMethod = order?.paymentData?.method || "";
441
+ const rawPaymentMethod = order?.paymentData?.method || "";
442
+ const paymentMethod = rawPaymentMethod ? props.paymethodLabels?.[rawPaymentMethod.toLowerCase()] || rawPaymentMethod : "";
441
443
  const carrierName = order?.postageData?.carrier || "";
442
444
  const addresses = order?.addresses || [];
443
445
  const invoiceAddress = addresses.find((a) => a.type === "invoice") || null;