diff --git a/CHANGELOG.md b/CHANGELOG.md index eded3df3..7089f601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Fix ReviewBlock filter to handle null item inside sellers' array + ## [3.12.3] - 2022-11-23 ### Added diff --git a/react/components/ReviewBlock.tsx b/react/components/ReviewBlock.tsx index e6db8adf..af05a58c 100644 --- a/react/components/ReviewBlock.tsx +++ b/react/components/ReviewBlock.tsx @@ -131,8 +131,8 @@ const ReviewBlock: FunctionComponent = ({ if (!item.sellers) return item.sellers = item.sellers.filter( (seller: any) => - seller.availability === 'available' || - seller.availability === 'partiallyAvailable' + seller?.availability === 'available' || + seller?.availability === 'partiallyAvailable' ) })