Skip to content

Commit

Permalink
re-add check for -1 gpa, add placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
egsch committed Nov 19, 2024
1 parent fcf390c commit a58a40b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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' &&
((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,7 @@ function GradeOrRmpRow<T>({
{formatValue(getValue(value.data))}
</Typography>
</Tooltip>
)) ||
) : <Typography className="text-base opacity-0">0.00</Typography>) ||
null}
</TableCell>
))}
Expand Down

0 comments on commit a58a40b

Please sign in to comment.