Skip to content

Commit

Permalink
Debug passport provider
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamoftrees committed May 2, 2024
1 parent 812340e commit d3f3f20
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ export function SwapForm({ data, theme }: SwapFromProps) {
// as user will need enough imx for the swap amount and the gas
const insufficientFundsForGas = useMemo(() => {
if (!provider) return true;
// eslint-disable-next-line no-console
console.log('insufficientFundsForGas checking', isPassportProvider(provider), provider);
if (isPassportProvider(provider)) return false;

const imxBalance = tokenBalances.find((b) => b.token.address?.toLowerCase() === NATIVE);
Expand Down

0 comments on commit d3f3f20

Please sign in to comment.