Skip to content

Commit b5ecb4e

Browse files
little changes
1 parent 3b41b4f commit b5ecb4e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

homework/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
if (key === 'Repository' || key === 'Description' || key === 'Forks' || key === 'Updated') {
2424
elem.innerHTML += `<strong>${key}:</strong> ${value} <br> `;
2525
}
26-
else if (key === 'foto') {
26+
else if (key === 'avatar') {
2727
elem.innerHTML += `<img src="${value}"></img>`
2828
}
29-
else if (key === 'name') {
29+
else if (key === 'username') {
3030
elem.innerHTML += `<span>${value}</span>`
3131
}
3232
else if (key === 'count') {
@@ -89,7 +89,7 @@
8989
return;
9090
}
9191
reposContributors.forEach(contributors => {
92-
createAndAppend('li', repoContributions, { foto: contributors.avatar_url, name: contributors.login, count: contributors.contributions })
92+
createAndAppend('li', repoContributions, { avatar: contributors.avatar_url, username: contributors.login, count: contributors.contributions })
9393
});
9494
});
9595
});

0 commit comments

Comments
 (0)