Skip to content

Commit a3659d5

Browse files
committed
Show country name instead of code
1 parent 7b6ecf9 commit a3659d5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/apps/talent-search/src/routes/talent-search/TalentSearch.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import {
44
useState,
55
} from 'react'
66

7+
import codes from "country-calling-code";
8+
79
import { ContentLayout, LoadingSpinner } from '~/libs/ui'
810
import SkillSearchResults from './components/skill-search-results/SkillSearchResults'
911
import Skill from '@talentSearch/lib/models/Skill'
@@ -51,7 +53,13 @@ export const TalentSearch: FC = () => {
5153
if(!value.country){
5254
value.country="-"
5355
}
54-
56+
57+
const code = codes.find((i) => i.isoCode3 === value.country);
58+
59+
if (code) {
60+
value.country = code.country;
61+
}
62+
5563
//totalSkillScore holds the total scoe for *all* skills associated with this member, regardless of if
5664
//they are applicable against the searched skills
5765
value.totalSkillScore = 0

0 commit comments

Comments
 (0)