Fix one-off migration
parent
09336fa1e4
commit
70538783d8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue