Skip to content
Snippets Groups Projects
Commit 5483a68c authored by Espen Boman Fosseide's avatar Espen Boman Fosseide :dart:
Browse files

fix: ghost authors

parent 663216e4
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