Skip to content

Commit

Permalink
remove fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magsyg committed Dec 11, 2024
1 parent 82e9048 commit b7a0e00
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/Components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ export function Navbar() {
</a>
</>
);

const showActiveRecruitments = activeRecruitments !== undefined && activeRecruitments?.length > 0;

const recruitmentLinks = showActiveRecruitments && (
const recruitmentLinks = (
<>
{activeRecruitments?.map((recruitment) => (
<Link
Expand Down Expand Up @@ -155,7 +152,7 @@ export function Navbar() {
expandedDropdown={expandedDropdown}
route={ROUTES.frontend.recruitment}
label={t(KEY.common_volunteer)}
labelClassName={showActiveRecruitments ? styles.active_recruitment : ''}
labelClassName={activeRecruitments && styles.active_recruitment}
dropdownLinks={recruitmentLinks}
showDropDownIcon={false}
/>
Expand Down

0 comments on commit b7a0e00

Please sign in to comment.