fix jup price api
This commit is contained in:
parent
5a64e343e8
commit
79541608f8
|
@ -370,7 +370,7 @@ const ListToken = ({ goBack }: { goBack: () => void }) => {
|
||||||
}
|
}
|
||||||
const tokenInfo = jupiterTokens.find((x) => x.address === mint)
|
const tokenInfo = jupiterTokens.find((x) => x.address === mint)
|
||||||
const priceInfo = await (
|
const priceInfo = await (
|
||||||
await fetch(`${JUPITER_PRICE_API_MAINNET}/price?ids=${mint}`)
|
await fetch(`${JUPITER_PRICE_API_MAINNET}price?ids=${mint}`)
|
||||||
).json()
|
).json()
|
||||||
setBaseTokenPrice(priceInfo.data[mint]?.price || 0)
|
setBaseTokenPrice(priceInfo.data[mint]?.price || 0)
|
||||||
setCurrentTokenInfo(tokenInfo)
|
setCurrentTokenInfo(tokenInfo)
|
||||||
|
|
Loading…
Reference in New Issue