Skip to content

User gets a success message on terms page on api failure. #5310

Open
@RiteshTC

Description

@RiteshTC

Describe the bug
User gets a success message on terms, page, even if the backend api fails.

To Reproduce
Steps to reproduce the behavior:

  1. Ensure logged out of the application or in an incognito window.
  2. Go to terms page "https://www.topcoder.com/challenges/terms/detail/564a981e-6840-4a5c-894e-d5ad22e9cd6f".
  3. Scroll down and click Accept'.
  4. The page responds with a success message.
  5. 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.

Screenshots
Not_Logged_In
Error_Message

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions