simpo-component-library 3.6.150 → 3.6.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15386,7 +15386,7 @@ class ProductDescComponent extends BaseSection {
15386
15386
  });
15387
15387
  }
15388
15388
  getPercentage(rating) {
15389
- if (this.ratingCounts[rating]) {
15389
+ if (this.ratingCounts && this.ratingCounts[rating]) {
15390
15390
  let percent = (this.ratingCounts[rating] / this.responseData?.totalReviewCount) * 100;
15391
15391
  return percent.toFixed(0);
15392
15392
  }