diff --git a/src/modules/market/components/OrderHistory.vue b/src/modules/market/components/OrderHistory.vue index 9bb93c8..943d0c6 100644 --- a/src/modules/market/components/OrderHistory.vue +++ b/src/modules/market/components/OrderHistory.vue @@ -81,8 +81,8 @@
- - {{ formatStatus(order.status) }} + + {{ formatStatus(getEffectiveStatus(order)) }}

@@ -190,7 +190,7 @@

-
+
Waiting for Payment Invoice @@ -314,6 +314,15 @@ const isOrderPaid = (order: Order) => { return order.paymentStatus === 'paid' } +const getEffectiveStatus = (order: Order) => { + // If paid, return 'paid' regardless of original status + if (isOrderPaid(order)) { + return order.shipped ? 'shipped' : 'paid' + } + // Otherwise return the original status + return order.status +} + const formatDate = (timestamp: number) => { return new Date(timestamp * 1000).toLocaleDateString('en-US', { year: 'numeric',