redwoodjs / redwood-tutorial

The end state after completing the RedwoodJS introduction tutorial
https://redwoodjs.com/tutorial
40 stars 109 forks source link

BlogLayout "loggedIn" story doesn't render user #53

Closed agiannelli closed 2 years ago

agiannelli commented 2 years ago

Fixes #52

🪲 The Bug

The loggedIn story calls mockCurrentUser and passes in the email address but the Logout link and user email do not display.

This would mean isAuthenticated is false, as that is the case where the navigation displays "Login".

As you will see in the screenshot below, there is no difference between the two stories.

image

🛠️ The Fix

By passing isAuthenticated: true to mockCurrentUser, the Logout button and user email load as expected.

image

Developed on GitPod 🚀

agiannelli commented 2 years ago

This might have been a user error now... 🤔