Skip to content

Commit

Permalink
fix(web): min-stake-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Dec 21, 2024
1 parent c106865 commit 9df6816
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({
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) {
Expand All @@ -284,9 +285,9 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({
setStakeError,
allowanceError,
isAllowance,
targetStake,
action,
courtDetails,
jurorBalance,
]);

const closePopup = () => {
Expand Down

0 comments on commit 9df6816

Please sign in to comment.