davidemerli / human-aoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not start the timer unless you can actually fetch the inputs

kientuong114 opened this issue · comments

Currently, when starting a new challenge, the website will try to fetch the input, and regardless of success, it will start the timer.
If people input the cookie incorrectly (or have an old one that has been revoked), the timer will start even though the user cannot access their input.

The website should recognize that the cookie is invalid and ask the user to add a new one, without starting the timer.

+1 my timer for day 1 be like
image

Fixed by throwing an error if cookie is invalid. A better UX will be taken into consideration in the next full rewrite, for now it does the job

6784eb3