diff --git a/src/components/ValidatorScrollTile/ValidatorScrollTile.tsx b/src/components/ValidatorScrollTile/ValidatorScrollTile.tsx index d90770c..7e40b0b 100644 --- a/src/components/ValidatorScrollTile/ValidatorScrollTile.tsx +++ b/src/components/ValidatorScrollTile/ValidatorScrollTile.tsx @@ -15,6 +15,7 @@ import { unstakeFromValidator, } from '@/helpers'; import { + BondStatus, DEFAULT_ASSET, GREATER_EXPONENT_DEFAULT, LOCAL_ASSET_REGISTRY, @@ -82,7 +83,7 @@ export const ValidatorScrollTile = ({ let subTitle: string; if (validator.jailed) { subTitle = 'Jailed'; - } else if (validator.status === 'BOND_STATUS_UNBONDED') { + } else if (validator.status === BondStatus.UNBONDED) { subTitle = 'Inactive'; } else if (delegatedAmount === 0) { subTitle = 'No delegation'; @@ -104,10 +105,10 @@ export const ValidatorScrollTile = ({ if (validator.jailed) { statusLabel = 'Jailed'; statusColor = 'error'; - } else if (validator.status === 'BOND_STATUS_UNBONDING') { + } else if (validator.status === BondStatus.UNBONDING) { statusLabel = 'Unbonding'; statusColor = 'warn'; - } else if (validator.status === 'BOND_STATUS_UNBONDED') { + } else if (validator.status === BondStatus.UNBONDED) { statusLabel = 'Inactive'; statusColor = 'warn'; } else {