Open erhaneth opened 1 year ago
In the progress.js file, you may encounter a situation where the currentUser variable and the contents of localStorage are both null.
Possible Reasons for Null Values User Authentication: The user is not logged in, resulting in a null value for currentUser.
Data Retrieval: An issue in the code prevents the proper retrieval of the user's information, leading to a null value for currentUser.
Empty localStorage: No data has been saved to localStorage, resulting in a null value.
Code Execution Order: The code that sets currentUser and localStorage values has not run yet.
Problem
On the progress page the number of challenge days shows "NAN", found this when testing https://challenge.8by8.us/signup
Goal
The amount of days left in the challenge should be a number.
Additional context
When user enter their email second time, they will see this issue.