Skip to content

Commit

Permalink
throw error for client
Browse files Browse the repository at this point in the history
  • Loading branch information
ogous committed Jan 30, 2025
1 parent 83a8ab0 commit e9aaa2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/hooks/useBuy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const useBuy = ({
account,
});
if (amount > userBalance) {
return openFundModal();
openFundModal();
throw new Error("You dont have enough USDC.");
}
const checkAmmReturnTx = prepareContractCall({
contract: config.contracts.lens,
Expand Down

0 comments on commit e9aaa2a

Please sign in to comment.