From 6b9e7a40224281247213aaf3c9cfe47bbd1d7ed6 Mon Sep 17 00:00:00 2001 From: Vishnu KS Date: Thu, 23 Jul 2020 11:53:50 +0000 Subject: [PATCH] team: Rename contrib_total_commits to calculate_total_commits. --- static/js/portico/team.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/portico/team.js b/static/js/portico/team.js index 2b58c7c732..a2e29b65c3 100644 --- a/static/js/portico/team.js +++ b/static/js/portico/team.js @@ -16,7 +16,7 @@ const repo_name_to_tab_name = { // if a user leaves and then revisits the same tab. const loaded_repos = []; -function contrib_total_commits(contributor) { +function calculate_total_commits(contributor) { let commits = 0; Object.keys(repo_name_to_tab_name).forEach((repo_name) => { commits += contributor[repo_name] || 0; @@ -42,7 +42,7 @@ export default function render_tabs() { .map((c) => ({ name: c.name, avatar: c.avatar, - commits: contrib_total_commits(c), + commits: calculate_total_commits(c), })) .sortBy("commits") .reverse()