Skip to content

Commit

Permalink
Pass policyID for workspace avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
MonilBhavsar committed Nov 17, 2023
1 parent ceb53ee commit f0a8415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/MultipleAvatars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ function MultipleAvatars({
>
{[...avatars].splice(0, maxAvatarsInRow).map((icon, index) => (
<UserDetailsTooltip
/* eslint-disable-next-line react/no-array-index-key */
key={`stackedAvatars-${index}`}
key={`stackedAvatars-${icon.id}`}
accountID={icon.id}
icon={icon}
fallbackUserDetails={{
Expand Down
1 change: 1 addition & 0 deletions src/pages/settings/InitialSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ function InitialSettingsPage(props) {
.filter((policy) => PolicyUtils.shouldShowPolicy(policy, props.network.isOffline))
.sortBy((policy) => policy.name.toLowerCase())
.map((policy) => ({
id: policy.id,
source: policy.avatar || ReportUtils.getDefaultWorkspaceAvatar(policy.name),
name: policy.name,
type: CONST.ICON_TYPE_WORKSPACE,
Expand Down

0 comments on commit f0a8415

Please sign in to comment.