From 9579bbe2f28b13c6f99c84701d74332d1edaec4d Mon Sep 17 00:00:00 2001 From: Wojciech Mista Date: Mon, 21 Feb 2022 19:11:31 +0100 Subject: [PATCH] Fix gift cards card in customer view (#1883) --- .../components/GiftCardCustomerCard/CustomerGiftCardsCard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/giftCards/components/GiftCardCustomerCard/CustomerGiftCardsCard.tsx b/src/giftCards/components/GiftCardCustomerCard/CustomerGiftCardsCard.tsx index 639c75bcb..cd17ab6ea 100644 --- a/src/giftCards/components/GiftCardCustomerCard/CustomerGiftCardsCard.tsx +++ b/src/giftCards/components/GiftCardCustomerCard/CustomerGiftCardsCard.tsx @@ -36,7 +36,8 @@ const CustomerGiftCardsCard: React.FC = () => { filter: { usedBy: [id] } - } + }, + skip: !id }); const closeCreateDialog = () => setOpenCreateDialog(false);