Skip to content

Commit

Permalink
fix: reset insufficient gas check
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Sep 12, 2022
1 parent 554f643 commit 4afe42a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/widget/src/hooks/useGasSufficiency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const useGasSufficiency = (route?: Route) => {

const checkInsufficientGas = useCallback(async () => {
if (!account.isActive || !route || !fromAmount) {
setInsufficientGas(undefined);
return;
}

Expand Down Expand Up @@ -82,6 +83,7 @@ export const useGasSufficiency = (route?: Route) => {
);

if (!tokenBalances?.length) {
setInsufficientGas(undefined);
return;
}

Expand Down

0 comments on commit 4afe42a

Please sign in to comment.