diff --git a/packages/fscomponents/src/components/ReviewsSummary.tsx b/packages/fscomponents/src/components/ReviewsSummary.tsx index daab601b24..495e2a7b86 100644 --- a/packages/fscomponents/src/components/ReviewsSummary.tsx +++ b/packages/fscomponents/src/components/ReviewsSummary.tsx @@ -46,8 +46,9 @@ export class ReviewsSummary extends Component { reviewIndicatorRowStyle, reviewIndicatorTitleText, reviewIndicatorTitleTextStyle - } = this.props; + } = this.props; + const numberFormatting = { maximumFractionDigits: 1 }; const reviewIndicatorCopy = reviewIndicatorSubtitle ? reviewIndicatorSubtitle : 'based on ' + count + ' reviews'; @@ -58,7 +59,9 @@ export class ReviewsSummary extends Component { {reviewIndicatorTitleText} )} - {value} / {base} + + {FSI18n.number(value, numberFormatting)} / {FSI18n.number(base, numberFormatting)} + {!hideReviewIndicatorSubtitle && (