Skip to content

Commit

Permalink
Merge pull request #52 from UTDNebula/fix/top-tags
Browse files Browse the repository at this point in the history
Fix/top tags
  • Loading branch information
TyHil authored Feb 22, 2024
2 parents 35c0904 + 6d5f8fd commit e412a7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function buildProfessorProfile(
? rmp?.wouldTakeAgainPercent
: undefined,
rmpTags: rmp?.teacherRatingTags
.sort((a, b) => a.tagCount - b.tagCount)
.sort((a, b) => b.tagCount - a.tagCount)
.map((tag) => tag.tagName),
gradeDistribution: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ProfessorProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ProfessorProfile = () => {
{' '}
{/* RMP Tag area */}
{professorData.rmpTags
?.slice(0, 4)
?.slice(0, 5)
.map((item: string, index: number) => (
<RmpTag key={index} text={item.toUpperCase()} />
))}
Expand Down

0 comments on commit e412a7b

Please sign in to comment.