Skip to content
Snippets Groups Projects
Commit 7fc4b0da authored by Birk Gustav Samson Stoveland's avatar Birk Gustav Samson Stoveland :speech_balloon:
Browse files

Merge branch '24-ghost-additions-and-deletions' into 'master'

fix: ghost authors

Closes #24

See merge request it2810-h21/team-24/project2-it2810!19
parents 663216e4 5483a68c
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,14 @@ export default function FeatsVsFixesPage() {
if (selectedAuthors[i]) {
featsFixesGraphData[0].val += authorData[i].feats;
featsFixesGraphData[1].val += authorData[i].fixes;
// only add data if author has any feats or fixes
if (authorData[i].feats || authorData[i].fixes) {
additionsDeletionsGraphData[0].val += authorData[i].additions;
additionsDeletionsGraphData[1].val += authorData[i].deletions;
}
}
}
useEffect(() => {
getAllCommitsFromAPI().then((res) => {
if (res) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment