We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0c17d3 commit c664b62Copy full SHA for c664b62
1 file changed
utils/overview-colors.ts
@@ -10,6 +10,8 @@ export const getHealthFactorColor = (healthFactor: string | number) => {
10
if (!healthFactor) return '';
11
let healthFactorNumber = 0;
12
13
+ // TODO: remove this once the health factor is fixed
14
+ if (healthFactor === '∞%') return '#53BA95';
15
if (typeof healthFactor === 'string')
16
healthFactorNumber = Number(healthFactor.split('%')[0]);
17
else healthFactorNumber = healthFactor;
0 commit comments