Skip to content

Commit

Permalink
update comment.
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Gupta <[email protected]>
  • Loading branch information
Krishna2323 committed Jan 30, 2024
1 parent e118db5 commit 30c2a90
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ function BaseUserDetailsTooltip({accountID, fallbackUserDetails, icon, delegateA
if (icon && (icon.type === CONST.ICON_TYPE_WORKSPACE || !title)) {
title = icon.name ?? '';

// We need to clear the subtitle for the workspaces otherwise user's email will be shown as subtitle
// Also we need to clear only when icon is of type `Workspace`
// We need to clear the subtitle for workspaces so that we don't display any user details under the workspace name
if (icon.type === CONST.ICON_TYPE_WORKSPACE) {
subtitle = '';
}
Expand Down

0 comments on commit 30c2a90

Please sign in to comment.