Skip to content

Commit

Permalink
fix: reduce refresh time for token balance
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Nov 21, 2022
1 parent 0a2e4c0 commit e5bd5af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/widget/src/hooks/useTokenBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ export const useTokenBalance = (token?: Token, accountAddress?: string) => {

const refetchNewBalance = useCallback(() => {
queryClient.setQueryDefaults(tokenBalanceQueryKey, {
refetchInterval: 500,
staleTime: 500,
refetchInterval: 250,
staleTime: 250,
});
}, [queryClient, tokenBalanceQueryKey]);

Expand Down

0 comments on commit e5bd5af

Please sign in to comment.