Prevent empty birdeye response breaking all price changes
This commit is contained in:
parent
5144b4db12
commit
fee6d002d4
|
@ -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,
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue