Fix mining pools wrong default timespan value
This commit is contained in:
parent
9df490373b
commit
620a7f0718
@ -39,7 +39,7 @@ export class PoolRankingComponent implements OnInit, OnDestroy {
|
|||||||
private formBuilder: FormBuilder,
|
private formBuilder: FormBuilder,
|
||||||
private miningService: MiningService,
|
private miningService: MiningService,
|
||||||
) {
|
) {
|
||||||
this.poolsWindowPreference = this.storageService.getValue('poolsWindowPreference') ? this.storageService.getValue('poolsWindowPreference') : '24h';
|
this.poolsWindowPreference = this.storageService.getValue('poolsWindowPreference') ? this.storageService.getValue('poolsWindowPreference') : '1w';
|
||||||
this.radioGroupForm = this.formBuilder.group({ dateSpan: this.poolsWindowPreference });
|
this.radioGroupForm = this.formBuilder.group({ dateSpan: this.poolsWindowPreference });
|
||||||
this.radioGroupForm.controls.dateSpan.setValue(this.poolsWindowPreference);
|
this.radioGroupForm.controls.dateSpan.setValue(this.poolsWindowPreference);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user