-
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
Personal details - Legal name is not showing error when pasting a name > 150 characters #18107
Comments
Triggered auto assignment to @johncschuster ( |
Bug0 Triage Checklist (Main S/O)
|
TR step is Failed https://expensify.testrail.io/index.php?/tests/view/3427392 |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
if (!ValidationUtils.isValidLegalName(values.legalFirstName)) {
errors.legalFirstName = translate('privatePersonalDetails.error.hasInvalidCharacter');
} else if (_.isEmpty(values.legalFirstName)) {
errors.legalFirstName = translate('common.error.fieldRequired');
+ } else if(!ValidationUtils.isValidLegalNameLength(values.legalFirstName)){
+ errors.legalFirstName = "Max length is 150 character " <- Message need to define
}
Note : I’m not sure if total length is combination of both Additionally : We can apply the same regex to limit the charter at other pages like |
@dhairyasenjaliya could you please help me to setup code to run on ios and android. As of now i am able to run only web and desktop applications. Your assistance would really mean a lot to me, thanks. |
@kuluruvineeth please ping me on slack will happy to guid you |
I have reproduced the behavior using the steps in the OP. Triaging! 2023-05-02_09-00-00.mp4 |
Triggered auto assignment to @francoisl ( |
@francoisl, @johncschuster Whoops! This issue is 2 days overdue. Let's get this updated quick! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
User can see an error below fields if either field has > 150 characters
Actual Result:
No error is shown, only 50 characters are allowed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.7.2
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
https://expensify.testrail.io/index.php?/tests/view/3427392
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6034460_legalname.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: