Skip to content

Commit

Permalink
no results found fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorawski committed Apr 15, 2024
1 parent 332a2be commit 5bef68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/WorkspaceSwitcherPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function WorkspaceSwitcherPage({policies}: WorkspaceSwitcherPageProps) {
return options;
}, [activeWorkspaceID, filteredAndSortedUserWorkspaces, getIndicatorTypeForPolicy, translate]);

const headerMessage = filteredAndSortedUserWorkspaces.length === 0 ? translate('common.noResultsFound') : '';
const headerMessage = filteredAndSortedUserWorkspaces.length === 0 && usersWorkspaces.length ? translate('common.noResultsFound') : '';
const shouldShowCreateWorkspace = usersWorkspaces.length === 0;

return (
Expand Down

0 comments on commit 5bef68f

Please sign in to comment.