Skip to content

Commit f47f14d

Browse files
author
Ajit Kumar
committed
fix(Cannot read properties of null (reading "isAdmin"))
1 parent 6b9dd7e commit f47f14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/pages/user/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export default async function User({ userEmail }) {
282282
}
283283

284284
function VerifyButton() {
285-
if (!user.verified && !loggedInUser.isAdmin) return null;
285+
if (!user.verified && !loggedInUser?.isAdmin) return null;
286286

287287
return (
288288
<span

0 commit comments

Comments
 (0)