Skip to content

Commit 1cf9c58

Browse files
committed
refactor(stats): change variable name from commits to contributions
1 parent c68796e commit 1cf9c58

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/Stats.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<div class="cards-container">
99
<Card
10-
:count="commitsLastMonth"
11-
description="Commits from users in Jordan in the last 30 days"
10+
:count="contributionsLastMonth"
11+
description="Contributions from users in Jordan in the last 30 days"
1212
color="blue"
1313
image="icon-commits.svg"
1414
img-size="w-10"
@@ -49,15 +49,15 @@ export default {
4949
this.$store.commit('setUsersCount', response.data.totalUsers)
5050
response = await this.$axios.get('/v1/contributions')
5151
this.$store.commit(
52-
'setCommitsLastMonth',
53-
response.data.commits_last_30_days
52+
'setContributionsLastMonth',
53+
response.data.contributions_last_30_days,
5454
)
5555
},
5656
computed: {
5757
...mapState({
5858
orgsCount: 'orgsCount',
5959
usersCount: 'usersCount',
60-
commitsLastMonth: 'commitsLastMonth',
60+
contributionsLastMonth: 'contributionsLastMonth',
6161
}),
6262
},
6363
}

0 commit comments

Comments
 (0)