Graph: don't refresh data if timespan is 24h or 3d

This commit is contained in:
natsoni 2024-05-15 17:05:18 +02:00
parent ec54ed6f94
commit 86c3ef68e4
No known key found for this signature in database
GPG Key ID: C65917583181743B

View File

@ -370,7 +370,7 @@ export class BlockFeesSubsidyGraphComponent implements OnInit {
}); });
this.chartInstance.on('datazoom', (params) => { this.chartInstance.on('datazoom', (params) => {
if (params.silent || this.isLoading) { if (params.silent || this.isLoading || ['24h', '3d'].includes(this.timespan)) {
return; return;
} }
this.updateZoom = true; this.updateZoom = true;