Personal details list migration: use accountID (number) in setContactMethodAsDefault#20792
Conversation
|
@cristipaval 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] |
| const reactionUsers = _.map(selectedReaction.users, (sender) => sender.accountID); | ||
| const emoji = _.find(emojis, (e) => e.name === selectedReaction.emoji); | ||
| const emojiCodes = EmojiUtils.getUniqueEmojiCodes(emoji, selectedReaction.users); | ||
| const hasUserReacted = Report.hasAccountIDReacted(this.props.currentUserPersonalDetails.accountID, reactionUsers); |
There was a problem hiding this comment.
Oofda - Report.hasAccountIDReacted is checking that accountIDs equal each other by converting accountIDs to strings (probably why we had .toString() above before - can we update that function to treat userAccountIDs as numbers? 🙏
Unless you think that has the potential to cause bigger problems...
There was a problem hiding this comment.
Done, I think this also fixed the tooltips content
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.3.29-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.29-11 🚀
|
Fixed Issues
$ Partially #19007
Slack thread: https://expensify.slack.com/archives/C049HHMV9SM/p1686594477838499
Tests
Offline tests
--
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
bleh_t.mp4
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android