File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
web/src/pages/Courts/CourtDetails/StakePanel Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,10 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({
266
266
if (
267
267
parsedAmount == 0n ||
268
268
( action === ActionType . stake &&
269
- targetStake !== 0n &&
270
269
courtDetails &&
271
- targetStake < BigInt ( courtDetails ?. court ?. minStake ) )
270
+ jurorBalance &&
271
+ parsedAmount !== 0n &&
272
+ jurorBalance [ 2 ] + parsedAmount < BigInt ( courtDetails ?. court ?. minStake ) )
272
273
)
273
274
return true ;
274
275
if ( isAllowance ) {
@@ -284,9 +285,9 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({
284
285
setStakeError ,
285
286
allowanceError ,
286
287
isAllowance ,
287
- targetStake ,
288
288
action ,
289
289
courtDetails ,
290
+ jurorBalance ,
290
291
] ) ;
291
292
292
293
const closePopup = ( ) => {
You can’t perform that action at this time.
0 commit comments