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

fix: prevent submitting decimal values in the PWA #937

Merged
merged 4 commits into from
Apr 3, 2023

Conversation

dodumosu
Copy link
Collaborator

the PR asks the user to review what they entered into a numeric data field in the PWA if it is not convertible to an exact integral value.

see: nditech/apollo-issues#199

@dodumosu dodumosu requested a review from takinbo January 28, 2023 01:26
Comment on lines 841 to 843
let errorMessage = '{{ _("Please check what you entered into the following fields") }}: ' + errorFields.join();
let errorMessage = '{{ _("Please check that you did not enter a value out of bounds or a decimal number for the following question(s)") }}: ' + errorFields.join();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can leave the previous prompt; it's less verbose and possibly won't overburden the user.

Copy link
Collaborator

@takinbo takinbo left a comment

Choose a reason for hiding this comment

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

utACK

@takinbo takinbo merged commit 1972685 into nditech:develop Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants