-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
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 🚀
|
@@ -165,6 +165,10 @@ function PaymentCardForm({ | |||
errors.addressStreet = translate(label.error.addressStreet); | |||
} | |||
|
|||
if (values.addressZipCode && !ValidationUtils.isValidZipCode(values.addressZipCode)) { |
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.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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