diff --git a/CHANGELOG.md b/CHANGELOG.md index 32bab324..1d7f2f30 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] +### Fixed +- `isMobile` prop passed to `ProductList` by `RelatedProducts` component would always be `false` due to object spreading order. + ## [1.39.0] - 2020-06-15 ### Added - `taxPercentage` and `Tax` field to product query. diff --git a/react/RelatedProducts.js b/react/RelatedProducts.js index 5b7d994b..b3807121 100644 --- a/react/RelatedProducts.js +++ b/react/RelatedProducts.js @@ -72,8 +72,8 @@ const RelatedProducts = ({ const productListProps = { products: productRecommendations || [], loading, - isMobile, ...productList, + isMobile, } return (