Skip to content

Commit c225aeb

Browse files
committed
Allow passing policyID to avatars if accountID is available in UserListItem
1 parent f542ddd commit c225aeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/SelectionList/UserListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function UserListItem<TItem extends ListItem>({
127127
reportID={reportExists ? item.reportID : undefined}
128128
/* eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing */
129129
accountIDs={!reportExists && !!itemAccountID ? [itemAccountID] : []}
130-
policyID={!reportExists && !itemAccountID ? policyID : undefined}
130+
policyID={!reportExists && !!policyID ? policyID : undefined}
131131
singleAvatarContainerStyle={[styles.actionAvatar, styles.mr3]}
132132
fallbackDisplayName={item.text ?? item.alternateText ?? undefined}
133133
/>

0 commit comments

Comments
 (0)