diff --git a/packages/widget/src/hooks/useGasSufficiency.ts b/packages/widget/src/hooks/useGasSufficiency.ts index 3186c3ed8..d288d5826 100644 --- a/packages/widget/src/hooks/useGasSufficiency.ts +++ b/packages/widget/src/hooks/useGasSufficiency.ts @@ -40,6 +40,7 @@ export const useGasSufficiency = (route?: Route) => { const checkInsufficientGas = useCallback(async () => { if (!account.isActive || !route || !fromAmount) { + setInsufficientGas(undefined); return; } @@ -82,6 +83,7 @@ export const useGasSufficiency = (route?: Route) => { ); if (!tokenBalances?.length) { + setInsufficientGas(undefined); return; }