Skip to content

Commit

Permalink
A few accountID updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Beamanator committed Jun 15, 2023
1 parent b081aa8 commit 961d93c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ function getIcons(report, personalDetails, defaultIcon = null, isPayer = false)
if (isTaskReport(report)) {
const ownerEmail = report.ownerEmail || '';
const ownerIcon = {
source: UserUtils.getAvatar(lodashGet(personalDetails, [ownerEmail, 'avatar']), ownerEmail),
source: UserUtils.getAvatar(lodashGet(personalDetails, [report.ownerAccountID, 'avatar']), report.ownerAccountID),
name: ownerEmail,
type: CONST.ICON_TYPE_AVATAR,
};
Expand Down
2 changes: 1 addition & 1 deletion src/libs/actions/PersonalDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function updateSelectedTimezone(selectedTimezone) {
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
value: {
[currentUserEmail]: {
[currentUserAccountID]: {
timezone,
},
},
Expand Down
1 change: 1 addition & 0 deletions src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ function cancelTask(taskReportID, taskTitle, originalStateNum, originalStatusNum
lastVisibleActionCreated: optimisticCancelReportAction.created,
lastMessageText: message,
lastActorEmail: optimisticCancelReportAction.actorEmail,
lastActorAccountID: optimisticCancelReportAction.actorAccountID,
},
},
{
Expand Down

0 comments on commit 961d93c

Please sign in to comment.