-
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
Requesting amount 0 (or less than two decimal) shows undefined URL. #3568
Comments
Triggered auto assignment to @jboniface ( |
Couldn't find related open issue. ProposalThe next button should be disabled if amount is less than 0.01. |
Hey @rushatgabhane! I do agree that the next button should be disabled, but only if the amount is less than or equal to 0, not if it's less than 0.01. I'm not entirely sure, but I think this is still a valid amount to request. If your concern is requesting amounts less than 1 cent, then users would still be able to request amounts like 0.015 etc. Can you provide more of an explanation as to how you would like to achieve this? |
Hi @jasperhuangg ! This is the network request that I tracked.Request for 0.001, SolutionWe can simply check for amount > 0.001 in isDisabled.
|
Looks good to me, feel free to get started! |
Can you please send job link to apply so that I can create a pull request? |
Triggered auto assignment to @arielgreen ( |
@rushatgabhane please apply here https://www.upwork.com/jobs/~01772f6a6c748c2faf @jasperhuangg, this will remained assigned to you as well throughout the full process, as you'll be doing the PR review. |
SUGGESTION: We can also show an error message on typing an invalid amount. Thanks |
Paid + bonus for proposing and solving the issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expected Result:
Requesting 0 shouldn't be allowed. (Leads to unnecessary API call)
Actual Result:
Request of 0 amount is allowed and redirects to e.cash/r/undefined
Expensify.cash.-.Google.Chrome.2021-06-12.18-33-56.mp4
Action Performed:
Workaround:
Not needed.
Platform:
Where is this issue occurring?
Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: