Fix hashrate difficulty SSR state dependency

This commit is contained in:
Mononaut 2023-10-18 21:14:59 +00:00
parent 6464f6d8bb
commit 10e468d463
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -326,7 +326,7 @@ export class HashrateChartComponent implements OnInit {
},
},
],
selected: JSON.parse(this.storageService.getValue('hashrate_difficulty_legend')) ?? {
selected: JSON.parse(this.storageService?.getValue('hashrate_difficulty_legend') || 'null') ?? {
'$localize`:@@79a9dc5b1caca3cbeb1733a19515edacc5fc7920:Hashrate`': true,
'$localize`::Difficulty`': this.network === '',
'$localize`Hashrate (MA)`': true,