Skip to content

Commit

Permalink
fix: make sure to deposit with 0 balance
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Dec 27, 2024
1 parent ac6de03 commit 8246395
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ export const DeploymentDepositModal: React.FunctionComponent<DeploymentDepositMo
label: "Use depositor to deposit in deployment"
});
} else if (depositData && amountInDenom > depositData?.balance) {
setError(`You can't deposit more than you currently have in your balance. Current balance is: ${depositData?.balance} ${depositData?.label}.`);
return;
// setError(`You can't deposit more than you currently have in your balance. Current balance is: ${depositData?.balance} ${depositData?.label}.`);
// return;
}

onDeploymentDeposit(deposit, isManaged ? browserEnvConfig.NEXT_PUBLIC_MASTER_WALLET_ADDRESS : (depositorAddress as string));
Expand All @@ -218,7 +218,6 @@ export const DeploymentDepositModal: React.FunctionComponent<DeploymentDepositMo
color: "secondary",
variant: "default",
side: "right",
disabled: !amount || isCheckingDepositor,
isLoading: isCheckingDepositor,
onClick: onDepositClick,
"data-testid": "deposit-modal-continue-button"
Expand Down

0 comments on commit 8246395

Please sign in to comment.