From 8130582f01a86e1a64d5e492c8354781d2e1dddd Mon Sep 17 00:00:00 2001 From: Marco Montalbano Date: Thu, 19 Oct 2023 10:10:41 +0200 Subject: [PATCH] fix: handle more order statuses --- packages/app-elements/src/dictionaries/orders.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/app-elements/src/dictionaries/orders.ts b/packages/app-elements/src/dictionaries/orders.ts index fea45e14f..0902f56c3 100644 --- a/packages/app-elements/src/dictionaries/orders.ts +++ b/packages/app-elements/src/dictionaries/orders.ts @@ -61,6 +61,7 @@ export function getOrderDisplayStatus(order: Order): OrderDisplayStatus { } case 'placed:paid:unfulfilled': + case 'placed:partially_refunded:unfulfilled': return { label: 'Placed', icon: 'arrowDown', @@ -150,6 +151,7 @@ export function getOrderDisplayStatus(order: Order): OrderDisplayStatus { } case 'approved:paid:not_required': + case 'approved:partially_refunded:not_required': return { label: 'Approved', icon: 'check', @@ -182,6 +184,9 @@ export function getOrderDisplayStatus(order: Order): OrderDisplayStatus { } case 'cancelled:refunded:unfulfilled': + case 'cancelled:refunded:not_required': + case 'cancelled:unpaid:unfulfilled': + case 'cancelled:free:unfulfilled': return { label: 'Cancelled', icon: 'x',