From a58a40b50699ecce0b0403e7ccecb72d096ab933 Mon Sep 17 00:00:00 2001 From: egsch Date: Tue, 19 Nov 2024 13:33:52 -0600 Subject: [PATCH] re-add check for -1 gpa, add placeholder --- src/components/compare/CompareTable/compareTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/compare/CompareTable/compareTable.tsx b/src/components/compare/CompareTable/compareTable.tsx index 9bf85eee..ce954b68 100644 --- a/src/components/compare/CompareTable/compareTable.tsx +++ b/src/components/compare/CompareTable/compareTable.tsx @@ -141,7 +141,7 @@ function GradeOrRmpRow({ {loadingFiller} )) || - (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 @@ -165,7 +165,7 @@ function GradeOrRmpRow({ {formatValue(getValue(value.data))} - )) || + ) : 0.00) || null} ))}