diff --git a/packages/components/src/feedback/ScoreFronstage/Average/Average.js b/packages/components/src/feedback/ScoreFronstage/Average/Average.js index 1d027f672..7a6ccbd71 100644 --- a/packages/components/src/feedback/ScoreFronstage/Average/Average.js +++ b/packages/components/src/feedback/ScoreFronstage/Average/Average.js @@ -9,7 +9,7 @@ const Average = ({ label, score, minGrade, maxGrade, ...props }) => { const renderScore = () => ( <> - {score.letter || Number.isInteger(score.number) ? score.number : score.number?.toFixed(2)} + {score.letter || (Number.isInteger(score.number) ? score.number : score.number?.toFixed(2))} {!score.letter && {`/${maxGrade}`}} diff --git a/packages/components/src/feedback/ScoreFronstage/Badge/Badge.js b/packages/components/src/feedback/ScoreFronstage/Badge/Badge.js index 3186a48fb..9def8bb38 100644 --- a/packages/components/src/feedback/ScoreFronstage/Badge/Badge.js +++ b/packages/components/src/feedback/ScoreFronstage/Badge/Badge.js @@ -8,7 +8,7 @@ const Badge = ({ score, minGrade, nonCalificable, ...props }) => { return ( - {score.letter || Number.isInteger(score.number) ? score.number : score.number?.toFixed(2)} + {score.letter || (Number.isInteger(score.number) ? score.number : score.number?.toFixed(2))} ); };