Skip to content

Commit

Permalink
docs: handle nullable Session
Browse files Browse the repository at this point in the history
Fixes #12182
  • Loading branch information
balazsorban44 authored Nov 5, 2024
1 parent d6e68e4 commit 06e2c9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { auth } from "../auth"
export default async function UserAvatar() {
const session = await auth()

if (!session.user) return null
if (!session?.user) return null

return (
<div>
Expand Down

0 comments on commit 06e2c9c

Please sign in to comment.