Fix mining pools wrong default timespan value

This commit is contained in:
nymkappa 2022-01-28 18:49:06 +09:00
parent 9df490373b
commit 620a7f0718
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -39,7 +39,7 @@ export class PoolRankingComponent implements OnInit, OnDestroy {
private formBuilder: FormBuilder,
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.controls.dateSpan.setValue(this.poolsWindowPreference);
}