-
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
fix: Red dot remains after error is cleared #34125
Conversation
src/libs/actions/User.ts
Outdated
@@ -223,8 +221,9 @@ function deleteContactMethod(contactMethod: string, loginList: Record<string, Lo | |||
key: ONYXKEYS.LOGIN_LIST, | |||
value: { | |||
[contactMethod]: { | |||
...oldLoginData, | |||
...(oldLoginData ?? {}), |
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.
...(oldLoginData ?? {}), | |
...oldLoginData, |
src/libs/actions/User.ts
Outdated
errorFields: { | ||
...(oldLoginData?.errorFields ?? {}), |
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.
...(oldLoginData?.errorFields ?? {}), | |
...oldLoginData?.errorFields, |
@tienifr, eh, I meant we need to use ?.
. As for ??
, I think it's safe to just use ...
for Falsy
value in object literals. 😂
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.
ah, I see. I thought it has the same behavior with array (we can spread Falsy value in array)
Reviewer Checklist
Screenshots/VideosAndroid: Native33021-android-native.mp4Android: mWeb Chrome33021-android-chrome.mp4iOS: Native33021-ios-native.mp4iOS: mWeb Safari33021-ios-safari.mp4MacOS: Chrome / Safari33021-web.mp4MacOS: Desktop33021-desktop.mp4 |
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.
✋ 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/danieldoglas in version: 1.4.27-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.27-1 🚀
|
Details
Fixed Issues
$ #33021
PROPOSAL: #33021 (comment)
Tests
Offline tests
Same as above
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Screen.Recording.2024-01-09.at.15.44.33.mov
Android: mWeb Chrome
Screen.Recording.2024-01-09.at.15.54.42.mp4
iOS: Native
Screen.Recording.2024-01-09.at.14.54.27.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-01-09.at.14.50.17.mov
MacOS: Desktop
Screen.Recording.2024-01-09.at.14.55.09.mp4