Skip to content

Commit

Permalink
fix: handle more order statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Oct 19, 2023
1 parent 109490a commit 8130582
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/app-elements/src/dictionaries/orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export function getOrderDisplayStatus(order: Order): OrderDisplayStatus {
}

case 'placed:paid:unfulfilled':
case 'placed:partially_refunded:unfulfilled':
return {
label: 'Placed',
icon: 'arrowDown',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 8130582

Please sign in to comment.