Skip to content

Commit

Permalink
feat(ProductTitle): only send when the feature is activated
Browse files Browse the repository at this point in the history
Co-authored-by: Larícia Mota <laricia.mota@vtex.com.br>
  • Loading branch information
artursantiago and lariciamota authored Feb 20, 2025
1 parent 000f804 commit c4411f6
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,15 @@ function ProductDetails({
)
}
refNumber={showRefNumber && productId}
reviewsAndRating={{
ratingValue: apiConfig.reviewsAndRatings
? rating.average
: undefined,
reviewsCount: apiConfig.reviewsAndRatings
? rating.totalCount
: undefined,
noReviewsText,
multipleReviewsText,
singleReviewText,
}}
{...(apiConfig.reviewsAndRatings && {
reviewsAndRating: {
ratingValue: rating.average,
reviewsCount: rating.totalCount,
noReviewsText,
multipleReviewsText,
singleReviewText,
},
})}
/>
</header>
<ImageGallery.Component
Expand Down

0 comments on commit c4411f6

Please sign in to comment.