diff --git a/frontend/components/MainPage/header/AgentButton/AgentNotRunningButton.tsx b/frontend/components/MainPage/header/AgentButton/AgentNotRunningButton.tsx index 259c0414a..947f4e2ce 100644 --- a/frontend/components/MainPage/header/AgentButton/AgentNotRunningButton.tsx +++ b/frontend/components/MainPage/header/AgentButton/AgentNotRunningButton.tsx @@ -118,7 +118,7 @@ export const AgentNotRunningButton = () => { return (serviceTotalStakedOlas ?? 0) >= requiredStakedOlas; } - if (isEligibleForStaking && isAgentEvicted) return true; + if (isEligibleForStaking && !isAgentEvicted) return true; if (isServiceStaked) { const hasEnoughOlas = @@ -148,12 +148,11 @@ export const AgentNotRunningButton = () => { isServiceStaked, masterSafeBalances, service, - storeState?.isInitialFunded, + storeState, isEligibleForStaking, isAgentEvicted, masterSafeNativeGasBalance, - selectedAgentConfig.operatingThresholds, - selectedAgentConfig.evmHomeChainId, + selectedAgentConfig, serviceTotalStakedOlas, serviceSafeOlasWithStaked, ]);