This commit is contained in:
Gala
2022-12-19 10:37:04 +01:00
parent 6c6e5d98b7
commit 8ed312fe1c
@@ -28,12 +28,11 @@ export const DelegationItem = ({
onItemActionClick?: (item: DelegationWithEverything, action: DelegationListItemActions) => void;
}) => {
const operatingCost = isDelegation(item) && item.cost_params?.interval_operating_cost;
const usesVestingContractTokens = item.uses_vesting_contract_tokens;
const tooltipText = () => {
if (nodeIsUnbonded) {
return 'This node has unbonded and it does not exist anymore. You need to undelegate from it to get your stake and outstanding rewards (if any) back.';
} else if (usesVestingContractTokens) {
} else if (item.uses_vesting_contract_tokens) {
return 'Delegation made with locked tockens';
} else {
return '';