From 1047762aa67564f642e4f8d01ecc5b97da2bedbc Mon Sep 17 00:00:00 2001 From: AlicjaSzu Date: Tue, 19 May 2020 13:10:11 +0200 Subject: [PATCH] OrderPayment - update discount condition --- src/orders/components/OrderPayment/OrderPayment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orders/components/OrderPayment/OrderPayment.tsx b/src/orders/components/OrderPayment/OrderPayment.tsx index dcdaa71f9..48a1c1992 100644 --- a/src/orders/components/OrderPayment/OrderPayment.tsx +++ b/src/orders/components/OrderPayment/OrderPayment.tsx @@ -159,7 +159,7 @@ const OrderPayment: React.FC = props => { )} - {maybe(() => order && order.discount.amount !== 0) && ( + {order?.discount?.amount > 0 && (