Liquid Graph fix.

Key navigation fix.
Addresses overflow fix.
Firefox float fix.
This commit is contained in:
softsimon
2020-05-17 17:06:09 +07:00
parent afb4f6e70b
commit 30d2c5de27
4 changed files with 7 additions and 11 deletions

View File

@@ -14,7 +14,6 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
@Input() data;
@Input() dateSpan = '2h';
network = '';
mempoolVsizeFeesOptions: any;
mempoolVsizeFeesData: any;
@@ -25,7 +24,6 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
) { }
ngOnInit(): void {
this.stateService.networkChanged$.subscribe((network) => this.network = network);
const labelInterpolationFnc = (value: any, index: any) => {
switch (this.dateSpan) {
case '2h':
@@ -71,7 +69,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
return '350+';
}
if (i === 0) {
if (this.network === 'liquid') {
if (this.stateService.network === 'liquid') {
return '0 - 1';
}
return '1 sat/vB';
@@ -94,7 +92,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
const finalArrayVbyte = this.generateArray(mempoolStats);
// Only Liquid has lower than 1 sat/vb transactions
if (this.network !== 'liquid') {
if (this.stateService.network !== 'liquid') {
finalArrayVbyte.shift();
}