Skip to content

Commit 6e2d2a6

Browse files
fix: pair logger.timeEnd for 'updating tokens cache' in useTokens
The third logger.time call in updateTokensBalances was never ended, causing repeated "Timer 'updating tokens cache' already exists" warnings on every recompute of the useMemo that wraps the function. Closes #467
1 parent bec0209 commit 6e2d2a6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/hooks/useTokens.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ export function updateTokensBalances(
226226
},
227227
{} as TokensMap['tokensByChainId'],
228228
)
229+
logger.timeEnd('updating tokens cache')
229230

230231
return { tokens: tokensWithBalances, tokensByChainId: tokensByChain }
231232
}

0 commit comments

Comments
 (0)