Skip to content

Commit

Permalink
no tooltip on no tags
Browse files Browse the repository at this point in the history
so it doesn't show up on overall
  • Loading branch information
TyHil committed Nov 15, 2024
1 parent a03e2eb commit 78f9f26
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/search/SearchResultsTable/searchResultsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ function Row({
<TableCell component="th" scope="row" className="w-full border-b-0">
<Tooltip
title={
rmp !== undefined && rmp.state === 'done'
? 'Tags: ' +
rmp.data.teacherRatingTags
.sort((a, b) => b.tagCount - a.tagCount)
.slice(0, 3)
.map((tag) => tag.tagName)
.join(', ')
: 'No Tags Available'
rmp !== undefined &&
rmp.state === 'done' &&
'Tags: ' +
rmp.data.teacherRatingTags
.sort((a, b) => b.tagCount - a.tagCount)
.slice(0, 3)
.map((tag) => tag.tagName)
.join(', ')
}
placement="top"
>
Expand Down

0 comments on commit 78f9f26

Please sign in to comment.