Skip to content

Commit c664b62

Browse files
committed
fix: add temporary health factor color for infinite value
1 parent e0c17d3 commit c664b62

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

utils/overview-colors.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export const getHealthFactorColor = (healthFactor: string | number) => {
1010
if (!healthFactor) return '';
1111
let healthFactorNumber = 0;
1212

13+
// TODO: remove this once the health factor is fixed
14+
if (healthFactor === '∞%') return '#53BA95';
1315
if (typeof healthFactor === 'string')
1416
healthFactorNumber = Number(healthFactor.split('%')[0]);
1517
else healthFactorNumber = healthFactor;

0 commit comments

Comments
 (0)