-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Avatars] Revert PR #50557 If two avatars, use Name 1 & Name 2 pattern.
#50697
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
Changes from all commits
4ba67b3
b544601
c38868c
7b38784
5ea5a4e
e58d4b3
55430fe
4e1a806
c0d8bc6
e1ab6d6
fd1f3cc
22fb00a
1787e14
a759695
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1686,7 +1686,7 @@ function hasOnlyNonReimbursableTransactions(iouReportID: string | undefined): bo | |
| */ | ||
| function isOneTransactionReport(reportID: string): boolean { | ||
| const reportActions = allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`] ?? ([] as ReportAction[]); | ||
| return ReportActionsUtils.getOneTransactionThreadReportID(reportID, reportActions) !== null; | ||
| return !!ReportActionsUtils.getOneTransactionThreadReportID(reportID, reportActions); | ||
| } | ||
|
|
||
| /* | ||
|
|
@@ -2428,7 +2428,7 @@ function getIcons( | |
|
|
||
| // For one transaction IOUs, display a simplified report icon | ||
| if (isOneTransactionReport(report?.reportID ?? '-1')) { | ||
| return [ownerIcon]; | ||
| return [managerIcon]; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should match the IOU case. For IOUs we use managerIcon, for expense reports, ownerIcon |
||
| } | ||
|
|
||
| return isManager ? [managerIcon, ownerIcon] : [ownerIcon, managerIcon]; | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.