Fix hashrate difficulty SSR state dependency

This commit is contained in:
Mononaut committed 2024-03-22 05:35:20 +00:00
1 parent 6464f6d8bb
commit 10e468d463
1 file changed
+1 -1
@@ -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,