Skip to content

Commit e714581

Browse files
authored
Merge pull request #70 from CS3219-AY2425S1/feat/loading_page
Fix Bug
2 parents ac6b19c + 664558e commit e714581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peerprep-fe/src/components/navbar/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Navbar() {
3030
PeerPrep
3131
</Link>
3232
<div className="flex items-center space-x-4">
33-
{user!.isAdmin && (
33+
{user?.isAdmin && (
3434
<Link href="/admin" className="text-gray-300 hover:text-white">
3535
Admin
3636
</Link>
@@ -39,7 +39,7 @@ export default function Navbar() {
3939
Questions
4040
</Link>
4141
{/* Admin users should be able to add questions instead of match */}
42-
{!user!.isAdmin ?
42+
{!user?.isAdmin ?
4343
<Link href="/match" className="text-gray-300 hover:text-white">
4444
Match
4545
</Link> :

0 commit comments

Comments
 (0)