We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac6b19c + 664558e commit e714581Copy full SHA for e714581
peerprep-fe/src/components/navbar/Navbar.tsx
@@ -30,7 +30,7 @@ export default function Navbar() {
30
PeerPrep
31
</Link>
32
<div className="flex items-center space-x-4">
33
- {user!.isAdmin && (
+ {user?.isAdmin && (
34
<Link href="/admin" className="text-gray-300 hover:text-white">
35
Admin
36
@@ -39,7 +39,7 @@ export default function Navbar() {
39
Questions
40
41
{/* Admin users should be able to add questions instead of match */}
42
- {!user!.isAdmin ?
+ {!user?.isAdmin ?
43
<Link href="/match" className="text-gray-300 hover:text-white">
44
Match
45
</Link> :
0 commit comments