Skip to content

Commit

Permalink
fix: now health widget will match will chart (#8432)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus authored Oct 11, 2024
1 parent 226874f commit a991cf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ describe('useFilteredFlagTrends', () => {
stale: 0,
potentiallyStale: 0,
averageUsers: 0,
averageHealth: undefined,
averageHealth: '100',
medianTimeToProduction: undefined,
});
});
Expand Down Expand Up @@ -214,7 +214,7 @@ describe('useFilteredFlagTrends', () => {
stale: 0,
potentiallyStale: 0,
averageUsers: 0,
averageHealth: undefined,
averageHealth: '100',
medianTimeToProduction: 5,
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const useFilteredFlagsSummary = (
averageUsers,
averageHealth: sum.total
? ((sum.active / (sum.total || 1)) * 100).toFixed(0)
: undefined,
: '100',
medianTimeToProduction,
};
}, [filteredProjectFlagTrends]);

0 comments on commit a991cf4

Please sign in to comment.