Skip to content

Commit

Permalink
name added to the list (#3071)
Browse files Browse the repository at this point in the history
  • Loading branch information
ObinnaVic authored Nov 11, 2023
1 parent 0a32473 commit 22ce426
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions Submissions/ObinnaVic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Victor Nkire",
"img": "https://avatars.githubusercontent.com/u/104280145?v=4",
"email": "[email protected]",
"links": {
"website": "https://obinnavic.github.io/my-portfolio/",
"linkedin": "https://www.linkedin.com/in/victor-n77/",
"github": "https://github.com/obinnavic"
},
"jobTitle": "Frontend web developer",
"location": {
"city": "Jos",
"state": "Plateau State",
"country": "Nigeria"
}
}
6 changes: 3 additions & 3 deletions src/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ function SimpleMap({ zoom = 3 }) {
// Two nested for loops are okay as array items will always be < 250 in both arrays
let finalArrayWithCountryAndLatLng: any = []
function finalCountryAndLocationArray() {
for (let i = 0; i < countryNamesAndNumOfDevsArr.length; i++) {
for (const element of countryNamesAndNumOfDevsArr) {
for (let j = 0; j < countriesLatLngArr.length; j++) {
if (
countryNamesAndNumOfDevsArr[i][0].toLowerCase() ===
element[0].toLowerCase() ===
countriesLatLngArr[j].name.toLowerCase() &&
!finalArrayWithCountryAndLatLng.some(
(entry: any) =>
Expand All @@ -46,7 +46,7 @@ function SimpleMap({ zoom = 3 }) {
finalArrayWithCountryAndLatLng.push({
country: countriesLatLngArr[j].name,
latlng: countriesLatLngArr[j].latlng,
numberOfDevs: countryNamesAndNumOfDevsArr[i][1],
numberOfDevs: element,
})
}
}
Expand Down

0 comments on commit 22ce426

Please sign in to comment.