From 70538783d82ea38a55984fa9e72d8bf29b0e9f30 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Fri, 11 Mar 2022 15:32:24 -0500 Subject: [PATCH] Fix one-off migration --- web/src/components/hooks.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/components/hooks.js b/web/src/components/hooks.js index cb66cbe..bc88cef 100644 --- a/web/src/components/hooks.js +++ b/web/src/components/hooks.js @@ -78,9 +78,7 @@ export const useLocalStorageMigration = () => { } const topicsStr = localStorage.getItem("topics"); if (topicsStr) { - const topics = topicsStr - .split(",") - .filter(topic => topic !== ""); + const topics = JSON.parse(topicsStr).filter(topic => topic !== ""); if (topics.length > 0) { (async () => { for (const topic of topics) {