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

update: added confirmation when a salary les than 10000 is entered #344

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LL-Etiane
Copy link

This pull request ask for users confirmation when a salary amount less than 10000 is entered

Why ?
This is to prevent mistake inputs by users when they sometimes input amounts such as 250 or 1. This is to solve #343
How ?
Let us know how it does what it does

this.$store.dispatch('postRating', this.newRating)
this.$router.push('/')
}
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but make sure to have a confirmation from a frontend here like @Asam237 !
Also, it could be great to have those lines formatted maybe 🤔 ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I will contact @Asam237 for confirmation.
For the code formatting will format it.

@DipandaAser DipandaAser requested a review from Asam237 October 26, 2022 10:47
@DipandaAser
Copy link
Member

@Asam237 review from a frontend dev needed

@Asam237
Copy link
Member

Asam237 commented Oct 27, 2022

@LL-Etiane

It adds three 0.
Someone may actually have a salary of 900, in which case it would be 900,000

simplescreenrecorder-2022-10-27_22.20.17.mp4

@Theryx
Copy link
Collaborator

Theryx commented Jan 2, 2023

Hey! @LL-Etiane thanks for helping on this issue. I love the warning added when the user enters a funny amount
On the other hand, converting the user input to a thousand might not be a good idea.

We can use a prompt message to ask the user to verify his input but we cannot force the user to enter a different input.
What do you think @Asam237 ?

@Theryx Theryx self-assigned this Jan 2, 2023
@GenjiruSUchiwa
Copy link
Collaborator

Any update here?

@Theryx Theryx added the frontend frontend label label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend frontend label
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

6 participants