fix: Error message is not displayed when entering characters that cannot be in a zip code.#54816
Conversation
…not be in a zip code. Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@allgandalf Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeN/A (Cannot enter details for native platforms as feature is blocked for native devices) Android: mWeb ChromeScreen.Recording.2025-01-07.at.3.30.19.PM.moviOS: NativeN/A (Cannot enter details for native platforms as feature is blocked for native devices) MacOS: Chrome / SafariScreen.Recording.2025-01-07.at.3.26.44.PM.movMacOS: DesktopScreen.Recording.2025-01-07.at.3.29.18.PM.mov |
|
@Krishna2323 please update the QA steps to mention that we cannot perform this test on native devices with the reasoning |
@allgandalf, added a note for that. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.0.85-0 🚀
|
3 similar comments
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.0.85-0 🚀
|
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.0.85-0 🚀
|
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.0.85-0 🚀
|
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.0.85-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.85-4 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.85-4 🚀
|
| errors.addressStreet = translate(label.error.addressStreet); | ||
| } | ||
|
|
||
| if (values.addressZipCode && !ValidationUtils.isValidZipCode(values.addressZipCode)) { |
There was a problem hiding this comment.
Adding back the US only zipcode validation here reverted the fix implemented in this issue:
and caused this issue in addition:
We fixed both by applying the fix detailed in this proposal.

Explanation of Change
Fixed Issues
$ #53918
PROPOSAL: #53918 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4