Browse Source

fix(dashboard): Fix incorrect currency being displayed in latest orders widget (#4090)

Raid Sobhi 1 week ago
parent
commit
f3a47ef24c

+ 7 - 1
packages/dashboard/src/lib/framework/dashboard-widget/latest-orders-widget/index.tsx

@@ -114,10 +114,16 @@ export function LatestOrdersWidget() {
                         },
                     },
                     total: {
+                        meta: {
+                            dependencies: ['currencyCode'],
+                        },
                         header: t`Total`,
                         cell: OrderMoneyCell,
                     },
-                    totalWithTax: { cell: OrderMoneyCell },
+                    totalWithTax: {
+                        meta: { dependencies: ['currencyCode'] },
+                        cell: OrderMoneyCell,
+                    },
                     state: { cell: OrderStateCell },
                     customer: { cell: CustomerCell },
                 }}