Skip to content

Commit

Permalink
refactor undefined to be empty array for icon styles
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaM1995 committed Jun 23, 2022
1 parent a6a20af commit 6cd5807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/settings/InitialSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const InitialSettingsPage = (props) => {
icon: policy.avatarURL ? policy.avatarURL : Expensicons.Building,
iconType: policy.avatarURL ? CONST.ICON_TYPE_AVATAR : CONST.ICON_TYPE_ICON,
action: () => Navigation.navigate(ROUTES.getWorkspaceInitialRoute(policy.id)),
iconStyles: policy.avatarURL ? undefined : [styles.popoverMenuIconEmphasized],
iconStyles: policy.avatarURL ? [] : [styles.popoverMenuIconEmphasized],
iconFill: themeColors.iconReversed,
fallbackIcon: Expensicons.FallbackWorkspaceAvatar,
}))
Expand Down

0 comments on commit 6cd5807

Please sign in to comment.