From 04ce476737399b43ac563ab219c24470f5f0a35b Mon Sep 17 00:00:00 2001 From: truemiller <31908788+truemiller@users.noreply.github.com> Date: Mon, 27 May 2024 14:47:19 +0100 Subject: [PATCH] Fix for displaying start button disabled --- frontend/components/Main/MainHeader.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/components/Main/MainHeader.tsx b/frontend/components/Main/MainHeader.tsx index fa2de48ed..83313c074 100644 --- a/frontend/components/Main/MainHeader.tsx +++ b/frontend/components/Main/MainHeader.tsx @@ -215,9 +215,8 @@ export const MainHeader = () => { ); if ( - (totalOlasBalance && - totalOlasBalance < olasCostOfBond + olasRequiredToStake) || - (totalEthBalance && totalEthBalance < monthlyGasEstimate) + (totalOlasBalance ?? 0) < olasCostOfBond + olasRequiredToStake || + (totalEthBalance ?? 0) < monthlyGasEstimate ) { return (