Fix graph legend update while load bug and remove unnecessary query
This commit is contained in:
2 files changed
+4
-2
No files matched your search
+4
@@ -396,6 +396,10 @@ export class BlockFeesSubsidyGraphComponent implements OnInit {
|
||||
this.chartInstance = ec;
|
||||
|
||||
this.chartInstance.on('legendselectchanged', (params) => {
|
||||
if (this.isLoading) {
|
||||
return;
|
||||
}
|
||||
|
||||
let mode: 'normal' | 'fiat' | 'percentage';
|
||||
if (params.name.includes('USD')) {
|
||||
mode = 'fiat';
|
||||
|
||||
Reference in new issue
Block a user