Skip to content

Commit

Permalink
Merge pull request #140 from valory-xyz/josh/fix-disabled-button
Browse files Browse the repository at this point in the history
fix: start agent button conditions
  • Loading branch information
truemiller authored May 27, 2024
2 parents 99e894e + 04ce476 commit 2ae3878
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/components/Main/MainHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,8 @@ export const MainHeader = () => {
);

if (
(totalOlasBalance &&
totalOlasBalance < olasCostOfBond + olasRequiredToStake) ||
(totalEthBalance && totalEthBalance < monthlyGasEstimate)
(totalOlasBalance ?? 0) < olasCostOfBond + olasRequiredToStake ||
(totalEthBalance ?? 0) < monthlyGasEstimate
) {
return (
<Button type="default" size="large" disabled>
Expand Down

0 comments on commit 2ae3878

Please sign in to comment.