Fix mempool chart tooltip at dashboard component.
This commit is contained in:
		
							parent
							
								
									31a1f0714b
								
							
						
					
					
						commit
						93cfdea6cf
					
				@ -85,8 +85,8 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
 | 
			
		||||
  generateArray(mempoolStats: OptimizedMempoolStats[]) {
 | 
			
		||||
    const finalArray: number[][] = [];
 | 
			
		||||
    let feesArray: number[] = [];
 | 
			
		||||
 | 
			
		||||
    for (let index = 28; index > -1; index--) {
 | 
			
		||||
    const limitFeesTemplate = this.template === 'advanced' ? 28 : 21;
 | 
			
		||||
    for (let index = limitFeesTemplate; index > -1; index--) {
 | 
			
		||||
      feesArray = [];
 | 
			
		||||
      mempoolStats.forEach((stats) => {
 | 
			
		||||
        feesArray.push(stats.vsizes[index] ? stats.vsizes[index] : 0);
 | 
			
		||||
 | 
			
		||||
@ -51,6 +51,7 @@
 | 
			
		||||
              <app-mempool-graph
 | 
			
		||||
                [template]="'widget'"
 | 
			
		||||
                [limitFee]="150"
 | 
			
		||||
                [limitFilterFee]="1"
 | 
			
		||||
                [data]="mempoolStats.mempool"
 | 
			
		||||
              ></app-mempool-graph>
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user