We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c106865 commit 9df6816Copy full SHA for 9df6816
web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawButton.tsx
@@ -266,9 +266,10 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({
266
if (
267
parsedAmount == 0n ||
268
(action === ActionType.stake &&
269
- targetStake !== 0n &&
270
courtDetails &&
271
- targetStake < BigInt(courtDetails?.court?.minStake))
+ jurorBalance &&
+ parsedAmount !== 0n &&
272
+ jurorBalance[2] + parsedAmount < BigInt(courtDetails?.court?.minStake))
273
)
274
return true;
275
if (isAllowance) {
@@ -284,9 +285,9 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({
284
285
setStakeError,
286
allowanceError,
287
isAllowance,
- targetStake,
288
action,
289
courtDetails,
290
+ jurorBalance,
291
]);
292
293
const closePopup = () => {
0 commit comments