From b968e33a451693f0ba42ca76341cc20afb4fd9de Mon Sep 17 00:00:00 2001 From: Richard Gottleber Date: Tue, 18 Jun 2024 15:58:16 -0500 Subject: [PATCH] minor logic fix --- dadjokes-onchain/frontend/src/components/WithdrawSection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dadjokes-onchain/frontend/src/components/WithdrawSection.js b/dadjokes-onchain/frontend/src/components/WithdrawSection.js index a53020f..c188e07 100644 --- a/dadjokes-onchain/frontend/src/components/WithdrawSection.js +++ b/dadjokes-onchain/frontend/src/components/WithdrawSection.js @@ -1,7 +1,7 @@ const WithdrawSection = ({ balance, handleWithdraw }) => { return ( <> - {((balance !== null && parseFloat(balance) > 0) || !balance) && ( + {balance !== null && parseFloat(balance) > 0 && (
Balance: {balance} ETH