From c7008bb569292f0e56aecb10b86e4b2d15b96878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frane=20Poli=C4=87?= <16856471+fPolic@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:56:18 +0100 Subject: [PATCH] fix: order details status (#10650) --- .../order-general-section/order-general-section.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/admin/dashboard/src/routes/orders/order-detail/components/order-general-section/order-general-section.tsx b/packages/admin/dashboard/src/routes/orders/order-detail/components/order-general-section/order-general-section.tsx index ac8f9e00970a3..e32ae907e3635 100644 --- a/packages/admin/dashboard/src/routes/orders/order-detail/components/order-general-section/order-general-section.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-detail/components/order-general-section/order-general-section.tsx @@ -61,7 +61,6 @@ export const OrderGeneralSection = ({ order }: OrderGeneralSectionProps) => {
- {/*TODO: SHOW ORDER STATUS INSTEAD OF FULFILLMENT STATUS HERE - if the last fulfillment is canceled it looks like the order is canceled*/}
{ { label: t("actions.cancel"), onClick: handleCancel, + disabled: !!order.canceled_at, icon: , }, ], @@ -100,11 +100,6 @@ const FulfillmentBadge = ({ order }: { order: HttpTypes.AdminOrder }) => { const PaymentBadge = ({ order }: { order: HttpTypes.AdminOrder }) => { const { t } = useTranslation() - /** - * TODO: revisit when Order<>Payment are linked - */ - return null - const { label, color } = getOrderPaymentStatus(t, order.payment_status) return (