Skip to content

Commit

Permalink
fix(components/ScoreFrontstage): add parenthesis to wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MIGUELez11 committed Feb 9, 2024
1 parent 7dfc49c commit 3eacfb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Average = ({ label, score, minGrade, maxGrade, ...props }) => {
const renderScore = () => (
<>
<span className={classes.score}>
{score.letter || Number.isInteger(score.number) ? score.number : score.number?.toFixed(2)}
{score.letter || (Number.isInteger(score.number) ? score.number : score.number?.toFixed(2))}
</span>
{!score.letter && <span>{`/${maxGrade}`}</span>}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Badge = ({ score, minGrade, nonCalificable, ...props }) => {

return (
<Box className={classes.root}>
{score.letter || Number.isInteger(score.number) ? score.number : score.number?.toFixed(2)}
{score.letter || (Number.isInteger(score.number) ? score.number : score.number?.toFixed(2))}
</Box>
);
};
Expand Down

0 comments on commit 3eacfb8

Please sign in to comment.