From c28d42a8203e34af3128326b4de36487aa467111 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 17 Apr 2023 18:24:42 +1200 Subject: [PATCH] Updated page header if viewing assessments --- src/App.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.js b/src/App.js index 1c02987..bfa4bdb 100644 --- a/src/App.js +++ b/src/App.js @@ -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"; };