-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Card - Entering amount $55666666.52 and tapping next all errors are not displayed to proceed #52033
Comments
Triggered auto assignment to @CortneyOfstad ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Card - Entering amount $55666666.52 and tapping next all errors are not displayed to proceed What is the root cause of that problem?We replace the App/src/pages/workspace/expensifyCard/issueNew/LimitStep.tsx Lines 51 to 59 in b1bffa6
What changes do you think we should make in order to solve the problem?On the cardLimitError, if errors.limit already contains a message, add a newline (\n) before the new message, ensuring each error appears on a separate line App/src/pages/workspace/expensifyCard/issueNew/LimitStep.tsx Lines 57 to 59 in b1bffa6
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Entering amount $55666666.52 and tapping next all errors are not displayed to proceed What is the root cause of that problem?We update the
What changes do you think we should make in order to solve the problem?We can prevent users from entering decimals altogether by setting the prop
Optional: we can remove this error the App/src/pages/workspace/expensifyCard/issueNew/LimitStep.tsx Lines 53 to 54 in e3452de
What alternative solutions did you explore? (Optional)Instead of using App/src/pages/workspace/expensifyCard/issueNew/LimitStep.tsx Lines 49 to 59 in b1bffa6
We can do something like this
Alternate 2 We can use the onChangeText prop to replace all non-numeric characters(including digits) and then set the new. The same approach we used here
and then set the new, cleaned value accordingly. Optional:we can remove these errors App/src/pages/workspace/expensifyCard/issueNew/LimitStep.tsx Lines 51 to 55 in e3452de
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The OP expects that both error messages that state to enter a whole dollar amount and enter an amount less than the limit will be shown. I think one error message should be shown at a time, but the "enter a whole dollar amount" should be prioritized. What is the root cause of that problem?We started to add the maximum amount validation in this PR. However, the validation error overrides any previous validation error found. App/src/pages/workspace/expensifyCard/issueNew/LimitStep.tsx Lines 50 to 60 in b914945
App/src/pages/workspace/expensifyCard/WorkspaceEditCardLimitPage.tsx Lines 90 to 100 in b914945
What changes do you think we should make in order to solve the problem?We need to update the validation logic so it only sets the limit error if both previous validation passes.
|
I'm going to be honest, this is a very niche error and the parameters are too specific to consider it an active bug. Because of that, I am going to close this. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.57-3
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Entering amount $55666666.52 and tapping next, both error please enter an amount less than $21474836 &"please enter an whole dollar amount before continuing" must be shown
Actual Result:
Entering amount $55666666.52 and tapping next all errors are not displayed to proceed. Only one error "please enter an amount less than $21474836" displayed and after correcting this other error displayed "please enter an whole dollar amount before continuing".
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6655238_1730795763953.Screenrecorder-2024-11-05-13-54-39-631_compress_1.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: