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 842a059 + b35d696 commit d38addaCopy full SHA for d38adda
src/pages/index.js
@@ -181,7 +181,7 @@ export default function Home() {
181
</p>
182
{status === 'authenticated' ? (
183
<div className='welcome__user'>
184
- <h2>Welcome, {session.user.username}!</h2>
+ <h2>Welcome, {session?.user?.name || 'mapper'}!</h2>
185
<ul className='welcome__user--actions'>
186
<li>
187
<a href={join(APP_URL, '/teams/create')}>Create New Team</a>
0 commit comments