diff --git a/pages/teams/[teamid].tsx b/pages/teams/[teamid].tsx index 429e1c5..15e7f28 100644 --- a/pages/teams/[teamid].tsx +++ b/pages/teams/[teamid].tsx @@ -54,6 +54,10 @@ function TeamDashboard() { }; useEffect(() => { + // set the document title based on the team + // todo: update based on who sent you a message + document.title = teamDashboardContext.team.name; + window.addEventListener("focus", onFocus); window.addEventListener("blur", onBlur); // Calls onFocus when the window first loads