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 28, 2023
1 parent 8943b9e commit fd74e4f
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 fd74e4f

Please sign in to comment.