rishipurwar1 / FrontendPro

FrontendPro - Become a Pro in Frontend Development with our Frontend Challenges
https://www.frontendpro.dev
MIT License
390 stars 85 forks source link

Fix crash when currentUser has no displayName #164

Closed TheFakeCake closed 2 years ago

TheFakeCake commented 2 years ago

I was browsing the live website but could not access any challenges after being logged in with Github. After a quick check, there is a bug in ChallengeHeader when currentUser.displayName doesn't exist.

For the solution, I took the same code I found in src/components/dashboard/Hero.js: https://github.com/rishipurwar1/coding-space/blob/ece238f583cafaed92f5bf8c48debe849bf9d71f/src/components/dashboard/Hero.js#L12-L16

vercel[bot] commented 2 years ago

Someone is attempting to deploy a commit to a Personal Account owned by @rishipurwar1 on Vercel.

@rishipurwar1 first needs to authorize it.

TheFakeCake commented 2 years ago

Fixed since PR opening