diff --git a/src/components/CourseOverview.tsx b/src/components/CourseOverview.tsx index 15ee147..2c72547 100644 --- a/src/components/CourseOverview.tsx +++ b/src/components/CourseOverview.tsx @@ -14,7 +14,7 @@ const CourseOverview = ({ header, grades }: CourseOverviewProps) => { const isCourse = typeof header !== 'string'; return (
+
{isCourse ? searchQueryLabel(header) : header}
{isCourse && ( diff --git a/src/components/SearchResultsTable.tsx b/src/components/SearchResultsTable.tsx index 4d94dbe..8ce448d 100644 --- a/src/components/SearchResultsTable.tsx +++ b/src/components/SearchResultsTable.tsx @@ -226,7 +226,8 @@ function Row({+ {rmp.data.numRatings.toLocaleString()} +
+Ratings given
+{rmp.data.avgRating}
++ {rmp.data.avgRating > 0 ? rmp.data.avgRating : 'N/A'} +
Professor rating
{rmp.data.avgDifficulty}
++ {rmp.data.avgDifficulty > 0 ? rmp.data.avgDifficulty : 'N/A'} +
Difficulty
- {rmp.data.wouldTakeAgainPercent.toFixed(0) + '%'} + {rmp.data.wouldTakeAgainPercent > 0 + ? rmp.data.wouldTakeAgainPercent.toFixed(0) + '%' + : 'N/A'}
Would take again