Open
Description
Describe the bug
User gets a success message on terms, page, even if the backend api fails.
To Reproduce
Steps to reproduce the behavior:
- Ensure logged out of the application or in an incognito window.
- Go to terms page "https://www.topcoder.com/challenges/terms/detail/564a981e-6840-4a5c-894e-d5ad22e9cd6f".
- Scroll down and click Accept'.
- The page responds with a success message.
- Check the Network tab or browser console an error is displayed "No token provided".
The user assumes he has accepted the terms, but its not recorded in the backend due to error.
Expected behavior
User should be redirected to login page, if attempts to accept the terms, before login.
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
Add any other context about the problem here.