sahandghavidel / mern-blog

MERN blog using tailwind css
https://blog.100jsprojects.com
376 stars 173 forks source link

If a user is created without Google authentication, we can't see their username and email in the dropdown #16

Closed mohammaduamhar closed 5 months ago

mohammaduamhar commented 5 months ago

{currentUser.username} only shows the username if the user is created with Google authentication. To solve this, we want to use {currentUser.username || currentUser.data.username}. @sahandghavidel