Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebrownlee committed Jul 26, 2024
1 parent c12c872 commit 11510c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/nav/StudentNavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const StudentNavBar = () => {
const { logout, isAuthenticated, getCurrentUser } = simpleAuth()
const { mimic, changeMimic } = useContext(SettingsContext)
let [toggleSettings, settingsIsOpen] = useModal("#dialog--settings")
const isStaff = getCurrentUser().profile.staff
const isStaff = getCurrentUser()?.profile?.staff

const makeLink = (to, text) => {
return <Link className="navbar__link" to={to} onClick={() => setChecked("")}>{text}</Link>
Expand Down

0 comments on commit 11510c0

Please sign in to comment.