Update block display default mode to fees
This commit is contained in:
		
							parent
							
								
									dbd4d152ce
								
							
						
					
					
						commit
						57b466d80f
					
				| @ -55,7 +55,7 @@ export class BlockchainComponent implements OnInit, OnDestroy, OnChanges { | ||||
|     firstValueFrom(this.stateService.chainTip$).then(() => { | ||||
|       this.loadingTip = false; | ||||
|     }); | ||||
|     this.blockDisplayMode = this.StorageService.getValue('block-display-mode-preference') as 'size' | 'fees' || 'size'; | ||||
|     this.blockDisplayMode = this.StorageService.getValue('block-display-mode-preference') as 'size' | 'fees' || 'fees'; | ||||
|   } | ||||
| 
 | ||||
|   ngOnDestroy(): void { | ||||
|  | ||||
| @ -279,7 +279,7 @@ export class StateService { | ||||
|     this.rateUnits$ = new BehaviorSubject<string>(rateUnitPreference || 'vb'); | ||||
| 
 | ||||
|     const blockDisplayModePreference = this.storageService.getValue('block-display-mode-preference'); | ||||
|     this.blockDisplayMode$ = new BehaviorSubject<string>(blockDisplayModePreference || 'size'); | ||||
|     this.blockDisplayMode$ = new BehaviorSubject<string>(blockDisplayModePreference || 'fees'); | ||||
| 
 | ||||
|     const viewAmountModePreference = this.storageService.getValue('view-amount-mode') as 'btc' | 'sats' | 'fiat'; | ||||
|     this.viewAmountMode$ = new BehaviorSubject<'btc' | 'sats' | 'fiat'>(viewAmountModePreference || 'btc'); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user