Skip to content

Commit

Permalink
Updated page header if viewing assessments
Browse files Browse the repository at this point in the history
  • Loading branch information
JJeeff248 committed Apr 17, 2023
1 parent bb6a9b5 commit c28d42a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ const App = () => {
if (isMobile) return viewedCourse ? viewedCourse.code : userDetails.displayName;

const name = userDetails.displayName + (userDetails.displayName[userDetails.displayName.length - 1] === "s" ? "'" : "'s")

if (viewAssessments && !viewedCourse) return name + " Upcoming Assessments";

return viewedCourse ? name + " " + viewedCourse.code : name + " Overview";
};

Expand Down

0 comments on commit c28d42a

Please sign in to comment.