Skip to content

Commit

Permalink
EPMRPP-98477 || Code Review fix - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO committed Jan 14, 2025
1 parent bef6287 commit e590035
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const OrganizationsPopover = ({ closePopover, closeSidebar }) => {
return (
<div className={cx('organizations-popover')}>
<div className={cx('organizations-search')}>
{filteredProjects.length > 0 && (
{availableProjects.length > 0 && (
<ThemeProvider theme="dark">
<FieldText
startIcon={<SearchIcon />}
Expand Down Expand Up @@ -175,7 +175,9 @@ export const OrganizationsPopover = ({ closePopover, closeSidebar }) => {
))
) : (
<div className={cx('organizations-empty-state')}>
{formatMessage(messages.noAssignments)}
{availableProjects.length > 0
? formatMessage(COMMON_LOCALE_KEYS.NO_RESULTS)
: formatMessage(messages.noAssignments)}
</div>
)}
</ScrollWrapper>
Expand Down

0 comments on commit e590035

Please sign in to comment.