Skip to content

Commit fa78077

Browse files
authored
Update useTokenPrices.tsx
fix type error
1 parent a1e6f47 commit fa78077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useTokenPrices.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const X_API_Key = process.env.NEXT_PUBLIC_X_API_KEY;
33
const fetcher = async (url : string) => {
44
const response = await fetch(url, {
55
headers: {
6-
'x-api-key': X_API_Key,
6+
'x-api-key': X_API_Key ?? '',
77
},
88
});
99
if (!response.ok) {

0 commit comments

Comments
 (0)