Prevent empty birdeye response breaking all price changes

This commit is contained in:
Riordan Panayides 2023-06-23 13:02:06 +01:00
parent 5144b4db12
commit fee6d002d4
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ const fetchBirdeyePrices = async (
if (responses?.length) {
return responses.map((res) => ({
data: res.data.items,
mint: res.data.items[0].address,
mint: res.data.items[0]?.address,
}))
}