Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
egsch committed Nov 19, 2024
1 parent a58a40b commit 7e57b6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/compare/CompareTable/compareTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function GradeOrRmpRow<T>({
<Typography className="text-base">{loadingFiller}</Typography>
</Skeleton>
)) ||
((value.state === 'done' && getValue(value.data) !== -1) ?
(value.state === 'done' && getValue(value.data) !== -1 ? (
(name !== 'GPA'
? (value.data as RMPInterface).numRatings > 0
: true) && ( // do not display RMP data (non-GPA data) if there are no reviews
Expand All @@ -165,7 +165,10 @@ function GradeOrRmpRow<T>({
{formatValue(getValue(value.data))}
</Typography>
</Tooltip>
) : <Typography className="text-base opacity-0">0.00</Typography>) ||
)
) : (
<Typography className="text-base opacity-0">0.00</Typography>
)) ||
null}
</TableCell>
))}
Expand Down

0 comments on commit 7e57b6d

Please sign in to comment.