Skip to content

Commit 966f454

Browse files
authored
chore(docs): fix property name from img to image (#11251)
* fix session img property * fix session image property
1 parent 16c2fce commit 966f454

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/pages/getting-started/session-management/get-session.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default async function UserAvatar() {
1818

1919
return (
2020
<div>
21-
<img src={session.user.img} alt="User Avatar" />
21+
<img src={session.user.image} alt="User Avatar" />
2222
</div>
2323
)
2424
}
@@ -97,7 +97,9 @@ export function UserAvatar({ session }) {
9797
return (
9898
<div>
9999
<img
100-
src={session?.user.img ?? "https://source.boringavatars.com/marble/120"}
100+
src={
101+
session?.user.image ?? "https://source.boringavatars.com/marble/120"
102+
}
101103
alt="User Avatar"
102104
/>
103105
</div>

0 commit comments

Comments
 (0)