Skip to content

Commit

Permalink
Merge pull request #37480 from software-mansion-labs/fix/missing-work…
Browse files Browse the repository at this point in the history
…space-avatar

[CP Staging]Fix missing default workspace avatar

(cherry picked from commit 241b127)
  • Loading branch information
MonilBhavsar authored and OSBotify committed Feb 29, 2024
1 parent 6ed4ca4 commit dc249d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/workspace/WorkspaceProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function WorkspaceProfilePage({policy, currencyList = {}, route}: WorkSpaceProfi
<Avatar
containerStyles={styles.avatarXLarge}
imageStyles={[styles.avatarXLarge, styles.alignSelfCenter]}
source={policy?.avatar ?? ReportUtils.getDefaultWorkspaceAvatar(policyName)}
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- nullish coalescing cannot be used if left side can be empty string
source={policy?.avatar || ReportUtils.getDefaultWorkspaceAvatar(policyName)}
fallbackIcon={Expensicons.FallbackWorkspaceAvatar}
size={CONST.AVATAR_SIZE.XLARGE}
name={policyName}
Expand Down

0 comments on commit dc249d4

Please sign in to comment.