Closed agiannelli closed 2 years ago
Fixes #52
The loggedIn story calls mockCurrentUser and passes in the email address but the Logout link and user email do not display.
loggedIn
mockCurrentUser
This would mean isAuthenticated is false, as that is the case where the navigation displays "Login".
isAuthenticated
As you will see in the screenshot below, there is no difference between the two stories.
By passing isAuthenticated: true to mockCurrentUser, the Logout button and user email load as expected.
isAuthenticated: true
Developed on GitPod 🚀
This might have been a user error now... 🤔
Fixes #52
🪲 The Bug
The
loggedIn
story callsmockCurrentUser
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.
🛠️ The Fix
By passing
isAuthenticated: true
tomockCurrentUser
, the Logout button and user email load as expected.