Skip to content

Commit

Permalink
fix(bridge-ui-v2): validation of token balance (#14755)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK committed Sep 21, 2023
1 parent 5f20399 commit c0e40a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function checkBalanceToBridge({
chainId: srcChainId,
});

if (!tokenAddress || tokenAddress === zeroAddress || balance === BigInt(0) || tokenBalance.value <= amount)
if (!tokenAddress || tokenAddress === zeroAddress || balance === BigInt(0) || tokenBalance.value < amount)
throw new InsufficientBalanceError('you do not have enough balance to bridge');

const bridge = bridges[token.type];
Expand Down

0 comments on commit c0e40a7

Please sign in to comment.