diff --git a/web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawButton.tsx b/web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawButton.tsx index 240f580cb..84dd659c7 100644 --- a/web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawButton.tsx +++ b/web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawButton.tsx @@ -266,9 +266,10 @@ const StakeWithdrawButton: React.FC = ({ if ( parsedAmount == 0n || (action === ActionType.stake && - targetStake !== 0n && courtDetails && - targetStake < BigInt(courtDetails?.court?.minStake)) + jurorBalance && + parsedAmount !== 0n && + jurorBalance[2] + parsedAmount < BigInt(courtDetails?.court?.minStake)) ) return true; if (isAllowance) { @@ -284,9 +285,9 @@ const StakeWithdrawButton: React.FC = ({ setStakeError, allowanceError, isAllowance, - targetStake, action, courtDetails, + jurorBalance, ]); const closePopup = () => {