Skip to content

Commit

Permalink
fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthiago committed Sep 6, 2022
1 parent c63d26e commit f88e1ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/CryptoPrice.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const useCryptoPriceController = ({ symbol }: { symbol: ChainSymbols }) => {

const getCryptoPrice = async () => {
try {
const nearPriceData = await fetch(
const priceData = await fetch(
`https://api.binance.com/api/v3/ticker/price?symbol=${symbol}USDT`
);
const final = await nearPriceData.json();
const final = await priceData.json();

setPrice(final.price);
} catch (error) {
Expand Down

0 comments on commit f88e1ff

Please sign in to comment.