From cf3642f7be643aef3c00ef1953ae20be4e59c433 Mon Sep 17 00:00:00 2001 From: Carl Mateus Date: Fri, 27 Aug 2021 08:45:25 -0500 Subject: [PATCH 1/2] solution error in product not available --- react/ProductSummaryWishlist.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/react/ProductSummaryWishlist.tsx b/react/ProductSummaryWishlist.tsx index 763f32d..566ae59 100644 --- a/react/ProductSummaryWishlist.tsx +++ b/react/ProductSummaryWishlist.tsx @@ -151,6 +151,13 @@ const ProductSummaryList: FC = ({ } if (!dataLists || !data || error) { + if (error && error?.message?.includes('products') && showViewEmptyList) { + return ( + + ) + } return null } From 32f3d2492efb00fd0e8b08f0dcfb792b0b2ac0ac Mon Sep 17 00:00:00 2001 From: Carl Mateus Date: Fri, 27 Aug 2021 08:51:17 -0500 Subject: [PATCH 2/2] add description CHANGELOG --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e733e1b..3ea5594 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fix +- Add view empty when user has only one product and this product has no inventory + ## [1.8.2] - 2021-08-18 ## [1.8.1] - 2021-08-18