Skip to content

Commit

Permalink
Fix coingecko query key
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Mar 15, 2024
1 parent edf1ca5 commit c0d56c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coin-gecko/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const staleTime = 1000 * 60 * 3 // 3 minutes

export function useGetTokenPricesFromGecko(tokenIds: string[], fiatCurrency: string) {
return useQuery<TokenPriceMap, AxiosError<unknown>>(
['tokenFiatPrices'],
['tokenFiatPrices', tokenIds, fiatCurrency],
() =>
axios
.get<GetTokenPricesFromGeckoResponse>('https://api.coingecko.com/api/v3/simple/price', {
Expand Down

0 comments on commit c0d56c3

Please sign in to comment.