From d3f3f20a2e3788309095b5882da37035b31a5981 Mon Sep 17 00:00:00 2001 From: Charlie McKenzie Date: Thu, 2 May 2024 15:10:54 +1000 Subject: [PATCH] Debug passport provider --- .../widgets-lib/src/widgets/swap/components/SwapForm.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/checkout/widgets-lib/src/widgets/swap/components/SwapForm.tsx b/packages/checkout/widgets-lib/src/widgets/swap/components/SwapForm.tsx index d8f7b78d6e..945064f47d 100644 --- a/packages/checkout/widgets-lib/src/widgets/swap/components/SwapForm.tsx +++ b/packages/checkout/widgets-lib/src/widgets/swap/components/SwapForm.tsx @@ -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);