From aefb339861e3867b898cb656865f1d60b1d2d492 Mon Sep 17 00:00:00 2001 From: AlicjaSzu Date: Tue, 19 May 2020 11:34:01 +0200 Subject: [PATCH] fix orders fixture error --- src/orders/components/OrderPayment/OrderPayment.tsx | 4 ++-- src/orders/fixtures.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/orders/components/OrderPayment/OrderPayment.tsx b/src/orders/components/OrderPayment/OrderPayment.tsx index 968ac7385..dcdaa71f9 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) ? ( + {maybe(() => order && order.discount.amount !== 0) && ( = props => { - - ) : null} + )} ({ canFinalize: true, created: "2018-09-20T23:23:39.811428+00:00", customerNote: "Lorem ipsum dolor sit", + discount: null, events: [], fulfillments: [], - discount: null, id: "T3JkZXI6MjQ=", lines: [ {