-
Notifications
You must be signed in to change notification settings - Fork 2
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
ORV2-3187 - Disallow non-numeric characters in transaction ID field on refund screen #1712
base: main
Are you sure you want to change the base?
Conversation
const filterNonNumericValue = (input?: string) => { | ||
if (!input) return ""; | ||
// only allows 0-9 inputs | ||
return input.replace(/[^\d]/g, ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct? you're just removing anything non-digit from the input. Shouldn't you display an error message asking the user to correct their input instead of just deleting non-numeric characters in their input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krishnan-aot during todays dev sync Michael has confirmed that we are okay with this behavior - an error message pertaining to non-numeric values may be implemented in the future
Quality Gate passed for 'onroutebc_policy'Issues Measures |
Quality Gate passed for 'onroutebc dops'Issues Measures |
Quality Gate passed for 'onroutebc vehicles'Issues Measures |
Quality Gate passed for 'onroutebc_scheduler'Issues Measures |
Quality Gate failed for 'onroutebc frontend'Failed conditions |
Description
Update transaction id input on refund screen to only accept numeric characters up to a max length of 15
Fixes #ORV2-3187
Type of change
Please delete options that are not relevant.
Checklist
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are promoted to: