diff --git a/src/components/sections/jobs/JobPostingList.tsx b/src/components/sections/jobs/JobPostingList.tsx index 70e0af7ac..0369b300e 100644 --- a/src/components/sections/jobs/JobPostingList.tsx +++ b/src/components/sections/jobs/JobPostingList.tsx @@ -81,16 +81,17 @@ export default function JobPostingList({ background="violet" /> {sortAlphabetically(companyLocations).map( - (location: CompanyLocation) => ( - setLocationFilter(location)} - text={`${location.companyLocationName} (${jobPostingsPerLocation[location.companyLocationName]})`} - key={location._id} - background="violet" - /> - ), + (location: CompanyLocation) => + jobPostingsPerLocation[location.companyLocationName] > 0 && ( + setLocationFilter(location)} + text={`${location.companyLocationName} (${jobPostingsPerLocation[location.companyLocationName]})`} + key={location._id} + background="violet" + /> + ), )}