diff --git a/CHANGELOG.md b/CHANGELOG.md index 07879e201..440e0d457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed console warning related to value of key 'Sort by' is not a string (#476) - Update pwacompat to avoid loading multiple favicons (https://github.com/DivanteLtd/vue-storefront/issues/4559) - Fixed changing and deleting shipping details on MyAccount (#4499) +- Corrected displayed the ratings stars on product page (#524) ## [1.0.2] - 03.07.2020 diff --git a/components/organisms/o-product-details.vue b/components/organisms/o-product-details.vue index 539aa6887..13eb5129a 100644 --- a/components/organisms/o-product-details.vue +++ b/components/organisms/o-product-details.vue @@ -141,7 +141,7 @@ export default { author: review.nickname, date: review.created_at, message: `${review.title}: ${review.detail}`, - rating: 1 // TODO: remove hardcode + rating: review.ratings.length > 0 ? review.ratings[0].value : 1 })) }, availability () {