FCC-Alumni / alumni-network

The official home of the freeCodeCamp Alumni Network :star: :star: :star:
https://fcc-alumni.com
BSD 3-Clause "New" or "Revised" License
70 stars 17 forks source link

remove jsx element from template literal #261

Closed Christian-Paul closed 7 years ago

Christian-Paul commented 7 years ago

When a user is logged in, the landing page says, "Like freeCodeCamp, this project is completely object Object". I believe this is due to playing the jsx element "link" inside of a template literal, which coerces the jsx element, which is an object, into a string. I've moved the "link" element outside of the template literal and it now works as expected on my local machine.

no-stack-dub-sack commented 7 years ago

Thanks @Christian-Paul! And nice catch! I noticed that a while ago and have been meaning to fix it actually. I wrapped all the text in strings a while ago to comply with some linter rules I set up to conform more closely to best practices, especially as other developers start to contribute more, and a couple of things got messed up in the conversion - this being one of them. Anyway, thanks for the quick fix!