diff options
Diffstat (limited to 'app/assets/javascripts/contributors/stores/getters.js')
-rw-r--r-- | app/assets/javascripts/contributors/stores/getters.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/contributors/stores/getters.js b/app/assets/javascripts/contributors/stores/getters.js index 79f5c701fb8..8b432b2041a 100644 --- a/app/assets/javascripts/contributors/stores/getters.js +++ b/app/assets/javascripts/contributors/stores/getters.js @@ -4,15 +4,15 @@ export const parsedData = (state) => { const byAuthorEmail = {}; const total = {}; - state.chartData.forEach(({ date, author_name, author_email }) => { + state.chartData.forEach(({ date, author_name: name, author_email: email }) => { total[date] = total[date] ? total[date] + 1 : 1; - const normalizedEmail = author_email.toLowerCase(); + const normalizedEmail = email.toLowerCase(); const authorData = byAuthorEmail[normalizedEmail]; if (!authorData) { byAuthorEmail[normalizedEmail] = { - name: author_name, + name, commits: 1, dates: { [date]: 1, |