Skip to content

Commit

Permalink
fix: keep previous data only when wallet is connected
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Dec 12, 2024
1 parent 1bf159e commit 1b4df34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/widget/src/hooks/useFromTokenSufficiency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const useFromTokenSufficiency = (route?: RouteExtended) => {
enabled: Boolean(account.address && token && !isTokenAddressBalanceLoading),
refetchInterval,
staleTime: refetchInterval,
placeholderData: keepPreviousData,
placeholderData: account.address ? keepPreviousData : undefined,
})

return {
Expand Down

0 comments on commit 1b4df34

Please sign in to comment.