|
82 | 82 | }); |
83 | 83 | const ul = createAndAppend('ul', contributesDiv); |
84 | 84 |
|
85 | | - Object.keys(contributors).forEach(contributor => { |
| 85 | + contributors.forEach(contributor => { |
86 | 86 | const listItem = createAndAppend('li', ul, { class: 'list flex-div' }); |
87 | 87 | const hyperlink = createAndAppend('a', listItem, { |
88 | | - href: contributors[contributor].html_url, |
| 88 | + href: contributor.html_url, |
89 | 89 | target: '_blank', |
90 | 90 | }); |
91 | 91 | createAndAppend('img', hyperlink, { |
92 | | - src: contributors[contributor].avatar_url, |
93 | | - alt: `${contributors[contributor].login} photo`, |
| 92 | + src: contributor.avatar_url, |
| 93 | + alt: `${contributor.login} photo`, |
94 | 94 | }); |
95 | 95 |
|
96 | 96 | const contributorInfoDiv = createAndAppend('div', hyperlink, { |
97 | 97 | class: 'contributor-info flex-div', |
98 | 98 | }); |
99 | 99 | createAndAppend('p', contributorInfoDiv, { |
100 | 100 | class: 'contributorsName', |
101 | | - text: contributors[contributor].login, |
| 101 | + text: contributor.login, |
102 | 102 | }); |
103 | 103 | createAndAppend('p', contributorInfoDiv, { |
104 | | - text: contributors[contributor].contributions, |
| 104 | + text: contributor.contributions, |
105 | 105 | class: 'badge', |
106 | 106 | }); |
107 | 107 | }); |
|
0 commit comments