Skip to content

Commit

Permalink
fix: fixing broken productivity
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasz97 committed Sep 23, 2024
1 parent a5bc3e1 commit b4c7612
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/report/useProductivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export const useProductivity = (
...tempResults.slice(existingUserIndex + 1, tempResults.length),
];
} else {
tempResults = tempResults.length === 0 ? result : [...tempResults, newData];
tempResults =
tempResults.length === 0 ? [newData] : [...tempResults, newData];
}
});
} catch (error) {
Expand Down

0 comments on commit b4c7612

Please sign in to comment.