diff --git a/src/pages/dashboard/BlockDifficultyCard.tsx b/src/pages/dashboard/BlockDifficultyCard.tsx index 9b431b7..188df39 100644 --- a/src/pages/dashboard/BlockDifficultyCard.tsx +++ b/src/pages/dashboard/BlockDifficultyCard.tsx @@ -141,14 +141,14 @@ function changeChartMode(value: "linear" | "logarithmic") { // Persist the change to localStorage debug("setting chart mode to %s", value); - localStorage.setItem("dashboard-difficulty-chart-mode", value); + localStorage.setItem("dashboardDifficultyChartMode", value); setChartMode(value); } // Load the chartMode from localStorage on startup if possible (done only on // first render, because localStorage is blocking) useEffect(() => { - const storedMode = localStorage.getItem("dashboard-difficulty-chart-mode"); + const storedMode = localStorage.getItem("dashboardDifficultyChartMode"); if (storedMode === "linear" || storedMode === "logarithmic") { debug("using saved chart mode %s", storedMode); setChartMode(storedMode);