fix: case where calendar exit price data is empty

This commit is contained in:
2025-02-24 09:15:09 -05:00
parent f05831b5f1
commit 14dff05785
@@ -207,7 +207,7 @@ export function HistoricalCalendarPrices() {
<Grid2 size={{ xs: 12, md: 6 }}> <Grid2 size={{ xs: 12, md: 6 }}>
<Paper elevation={3} sx={{ p: 3, minHeight: "28em" }}> <Paper elevation={3} sx={{ p: 3, minHeight: "28em" }}>
{underlying.value !== null && {underlying.value !== null &&
similarCalendarPriceChartData.value.length > 0 ? ( calendarExitPriceChartData.value.length > 0 ? (
<Scatter <Scatter
data={{ data={{
datasets: [ datasets: [