Skip to content

Commit

Permalink
fix: Show correct description when all users are added to the convers…
Browse files Browse the repository at this point in the history
…ation [FS-1728] (#14881)
  • Loading branch information
atomrc committed Mar 23, 2023
1 parent 118dbfd commit 247de80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/script/components/UserSearchableList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ const UserSearchableList: React.FC<UserListProps> = ({
user => !props.excludeUsers?.some(excludeId => matchQualifiedIds(user.qualifiedId, excludeId)),
);
const isEmptyUserList = userList.length === 0;
const hasUsers = users.length === 0;
const noResultsDataUieName = hasUsers ? 'status-all-added' : 'status-no-matches';
const noResultsTranslationText = hasUsers ? 'searchListEveryoneParticipates' : 'searchListNoMatches';
const isSearching = filter.length > 0;
const noResultsDataUieName = !isSearching ? 'status-all-added' : 'status-no-matches';
const noResultsTranslationText = !isSearching ? 'searchListEveryoneParticipates' : 'searchListNoMatches';

return (
<div className="user-list-wrapper" data-uie-name={dataUieName} role="list">
Expand Down

0 comments on commit 247de80

Please sign in to comment.