File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/apps/talent-search/src/routes/talent-search Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 44 useState ,
55} from 'react'
66
7+ import codes from "country-calling-code" ;
8+
79import { ContentLayout , LoadingSpinner } from '~/libs/ui'
810import SkillSearchResults from './components/skill-search-results/SkillSearchResults'
911import 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
You can’t perform that action at this time.
0 commit comments