From 7c6ef4d41d095025d1f654e6ef5034e1dd2ef9a7 Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Tue, 26 Nov 2019 15:49:39 +0100 Subject: [PATCH] Fix skeleton --- src/discounts/components/VoucherList/VoucherList.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/discounts/components/VoucherList/VoucherList.tsx b/src/discounts/components/VoucherList/VoucherList.tsx index 45afba2d3..83e2e4382 100644 --- a/src/discounts/components/VoucherList/VoucherList.tsx +++ b/src/discounts/components/VoucherList/VoucherList.tsx @@ -220,11 +220,9 @@ const VoucherList: React.FC = props => { )} - {voucher && voucher.usageLimit ? ( - voucher.usageLimit - ) : voucher && voucher.usageLimit === null ? ( - "-" - ) : ( + {maybe( + () => + voucher.usageLimit === null ? "-" : voucher.usageLimit, )}