Skip to content

Commit

Permalink
fix compare page crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mintdart committed Jan 8, 2025
1 parent 8a8291f commit 303edf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ECharts/ChainChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function AreaChart({
data: [],
show: true
} as Record<string, any>)
data?.globalChart.forEach(([date, value]) => {
data?.globalChart?.forEach(([date, value]) => {
series[series.length - 1].data.push([getUtcDateObject(date), value])
})
}
Expand Down Expand Up @@ -286,7 +286,7 @@ export default function AreaChart({
areaStyle: areaColor
})

data?.globalChart.forEach(([date, value]) => {
data?.globalChart?.forEach(([date, value]) => {
series[series.length - 1].data.push([getUtcDateObject(date), (data?.raisesData[date] || 0) * 1e6])
})
}
Expand Down

0 comments on commit 303edf5

Please sign in to comment.