Skip to content

Commit 72d7e42

Browse files
authored
explorer: fix stake account activating state (solana-labs#21294)
1 parent 2300a8c commit 72d7e42

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

explorer/src/components/account/StakeAccountSection.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -296,5 +296,11 @@ function isFullyInactivated(
296296
return false;
297297
}
298298

299-
return stake.delegation.stake.toString() === activation.inactive.toString();
299+
const delegatedStake = stake.delegation.stake.toNumber();
300+
const inactiveStake = activation.inactive;
301+
302+
return (
303+
!stake.delegation.deactivationEpoch.eq(MAX_EPOCH) &&
304+
delegatedStake === inactiveStake
305+
);
300306
}

0 commit comments

Comments
 (0)