From 532a79f6f8e5db657825f31f860d49fa7501d8ed Mon Sep 17 00:00:00 2001 From: Filip Cichorek Date: Tue, 28 Apr 2026 11:40:51 +0200 Subject: [PATCH] Fix conditional bug --- src/components/order/OrderTotals.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/order/OrderTotals.tsx b/src/components/order/OrderTotals.tsx index 6f52c16a..76f0c044 100644 --- a/src/components/order/OrderTotals.tsx +++ b/src/components/order/OrderTotals.tsx @@ -63,9 +63,8 @@ export function OrderTotals({ order }: OrderTotalsProps) { ) : null} - {order.amount_due && - order.amount_due !== order.total && - Number.parseFloat(order.amount_due) > 0 && ( + {Number.parseFloat(order.amount_due) > 0 && + order.amount_due !== order.total && (
{t("amountDue")}