Skip to content

Commit

Permalink
refactor: optimize MainHeader component and remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed May 9, 2024
1 parent a404d5b commit 3a4f949
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions frontend/components/Main/MainHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,7 @@ export const MainHeader = () => {
setIsBalancePollingPaused(false);
setServiceButtonState({ isLoading: false });
}
}, [
serviceTemplate,
services,
setIsBalancePollingPaused,
setServiceStatus,
wallets,
]);
}, [serviceTemplate, setIsBalancePollingPaused, setServiceStatus, wallets]);

const handleStop = useCallback(() => {
if (services.length === 0) return;
Expand All @@ -112,13 +106,6 @@ export const MainHeader = () => {
</Button>
);
}
if (serviceStatus === DeploymentStatus.CREATED) {
return (
<Button type="default" size="large" disabled>
Agent error
</Button>
);
}
if (totalOlasBalance === undefined || totalEthBalance === undefined) {
return (
<Button type="primary" size="large" disabled>
Expand Down

0 comments on commit 3a4f949

Please sign in to comment.