diff --git a/src/apps/talent-search/src/components/talent-card/TalentCard.tsx b/src/apps/talent-search/src/components/talent-card/TalentCard.tsx index bdb573f08..2da3e12b4 100644 --- a/src/apps/talent-search/src/components/talent-card/TalentCard.tsx +++ b/src/apps/talent-search/src/components/talent-card/TalentCard.tsx @@ -40,6 +40,7 @@ const TalentCard: FC = props => { const skillsWrapRef = useRef(null) const talentRoute = `${TALENT_SEARCH_PATHS.talent}/${props.member.handle}` const isMatchingSkill = useIsMatchingSkill(props.queriedSkills) + const address = props.member.addresses?.[0] ?? {} const matchedSkills = useMemo(() => ( orderBy( @@ -102,17 +103,14 @@ const TalentCard: FC = props => { {props.member.handle} - {props.member.addresses?.map(addr => ( -
+ {(!!props.member.addresses?.length || !!props.member.homeCountryCode) && ( +
- {getAddrString(addr.city, getCountry(props.member.homeCountryCode))} + {getAddrString(address.city, getCountry(props.member.homeCountryCode))}
- ))} + )}