fix jup price api

This commit is contained in:
Adrian Brzeziński 2023-11-03 10:40:04 +01:00
parent 5a64e343e8
commit 79541608f8
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ const ListToken = ({ goBack }: { goBack: () => void }) => {
}
const tokenInfo = jupiterTokens.find((x) => x.address === mint)
const priceInfo = await (
await fetch(`${JUPITER_PRICE_API_MAINNET}/price?ids=${mint}`)
await fetch(`${JUPITER_PRICE_API_MAINNET}price?ids=${mint}`)
).json()
setBaseTokenPrice(priceInfo.data[mint]?.price || 0)
setCurrentTokenInfo(tokenInfo)