Skip to content

Commit 5954df1

Browse files
committed
Merge branch 'frontend-fix-chart'
2 parents 64305b4 + 19e6a75 commit 5954df1

File tree

1 file changed

+5
-4
lines changed
  • frontends/web/src/routes/account/summary

1 file changed

+5
-4
lines changed

frontends/web/src/routes/account/summary/chart.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,14 @@ class Chart extends Component<Props, State> {
111111
}
112112
if (
113113
(this.lineSeries && prev.data.chartDataDaily && prev.data.chartDataHourly && chartDataDaily && chartDataHourly)
114-
&& (
115-
prev.data.chartDataDaily.length !== chartDataDaily.length
116-
|| prev.data.chartDataHourly.length !== chartDataHourly.length
117-
)
114+
&& (
115+
prev.data.chartDataDaily.length !== chartDataDaily.length
116+
|| prev.data.chartDataHourly.length !== chartDataHourly.length
117+
)
118118
) {
119119
const data = this.state.source === 'hourly' ? chartDataHourly : chartDataDaily;
120120
this.lineSeries.setData(data);
121+
this.chart?.timeScale().fitContent();
121122
this.setFormattedData(data);
122123
}
123124

0 commit comments

Comments
 (0)