diff --git a/src/background.ts b/src/background.ts index 0c7fbc1..2eb7b5d 100644 --- a/src/background.ts +++ b/src/background.ts @@ -538,6 +538,7 @@ export function updateThreadActivity({ // Retrieve the existing thread activity data const storedData = localStorage.getItem(key); + let threads; if (!storedData) { @@ -549,7 +550,7 @@ export function updateThreadActivity({ lastResetTime: 0, }; } else { - threads = storedData; + threads = JSON.parse(storedData); } let lastResetTime = threads.lastResetTime || 0;