Skip to content

[BUG] <Error on empty Gender is not handled on the client side> #46

@mohsenkhosroanjam

Description

@mohsenkhosroanjam

Description

As a user, I can register on the website to create an account. In the sign-up process, if I do not choose the Gender, the API responds with 400 (the response is: "{"success":false,"message":{"gender":["Gender is required"]}}") but the error is not handled on the client side.
In this scenario:
1- The user should be informed that choosing gender is mandatory
2- The client should not send the request to the server when the gender field is empty.

Screenshots

image


image

Any additional information?

Steps to reproduce:
1- Go to https://leetcode-journal.vercel.app/auth/register
2- Fill all the fields with valid inputs
3- Do not choose any "Gender"
4- Press the "Register" button.

What browser are you seeing the problem on?

Firefox, Chrome, Microsoft Edge

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions