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.
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +2 -2
- package/fesm2022/simpo-component-library.mjs +1 -1
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/package.json +1 -1
- package/simpo-component-library-3.6.151.tgz +0 -0
- package/simpo-component-library-3.6.150.tgz +0 -0
@@ -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
|
}
|