Skip to content

Commit

Permalink
EPMRPP-96153 || Code Review fix - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO committed Oct 21, 2024
1 parent 2ab3f0d commit ce59956
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { COMMON_LOCALE_KEYS } from 'common/constants/localization';
import { SIDEBAR_EVENTS } from 'components/main/analytics/events';
import { useTracking } from 'react-tracking';
import { locationSelector } from 'controllers/pages/selectors';
import routesMap from 'routes/routesMap';
import { OrganizationsItem } from './organizationsItem';
import styles from './organizationsPopover.scss';

Expand Down Expand Up @@ -59,7 +60,7 @@ export const OrganizationsPopover = ({ closePopover, closeSidebar }) => {
const { trackEvent } = useTracking();
const maxHeightPopover = window.innerHeight - MARGIN_TOP_AND_MARGIN_BOTTOM;
const location = useSelector(locationSelector);
const isAllOrganizationPage = location.pathname === '/organizations';
const isAllOrganizationPage = location.pathname === routesMap.ORGANIZATIONS_PAGE.path;

const filteredProjects = useMemo(
() =>
Expand Down

0 comments on commit ce59956

Please sign in to comment.