fix: correct coverage history statistics
Signed-off-by: Anton Ganhammar <ganhammar@gmail.com>
This commit is contained in:
@@ -113,8 +113,8 @@ export const CoverageHistoryChart = () => {
|
||||
);
|
||||
}
|
||||
|
||||
const oldestCoverage = valueHistory.history[0];
|
||||
const [latestCoverage] = valueHistory.history.slice(-1);
|
||||
const [oldestCoverage] = valueHistory.history.slice(-1);
|
||||
const latestCoverage = valueHistory.history[0];
|
||||
|
||||
const getTrendForCoverage = (type: Coverage) => {
|
||||
if (!oldestCoverage[type].percentage) {
|
||||
|
||||
Reference in New Issue
Block a user