Skip to content

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

Open
LL-Etiane wants to merge 1 commit into
osscameroon:mainfrom
LL-Etiane:validate_salary
Open

update: added confirmation when a salary les than 10000 is entered#344
LL-Etiane wants to merge 1 commit into
osscameroon:mainfrom
LL-Etiane:validate_salary

Conversation

@LL-Etiane

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@Asam237 review from a frontend dev needed

@Asam237

Asam237 commented Oct 27, 2022

Copy link
Copy Markdown
Member

@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

Theryx commented Jan 2, 2023

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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