Skip to content

Commit

Permalink
fix validate
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Sep 27, 2024
1 parent 5025cf4 commit 3bb7815
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/page/bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,7 @@ const Bridge = () => {

if (!token || !amount) throw "Not valid!";

console.log({ amount, deductNativeAmount });
if (Number(deductNativeAmount) < Number(amount))
if (toDisplay(amountsTon[token.denom], token.decimal) < Number(amount))
throw "Insufficient funds";

if (tonNetwork == "mainnet") {
Expand Down

0 comments on commit 3bb7815

Please sign in to comment.