Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAN days left in the challenge #195

Open
erhaneth opened this issue Feb 14, 2023 · 1 comment
Open

NAN days left in the challenge #195

erhaneth opened this issue Feb 14, 2023 · 1 comment
Assignees

Comments

@erhaneth
Copy link

Problem

On the progress page the number of challenge days shows "NAN", found this when testing https://challenge.8by8.us/signup
Screen Shot 2023-02-07 at 14 20 09

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.

@erhaneth
Copy link
Author

erhaneth commented May 2, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant