mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-20 10:05:56 +00:00
added parse
This commit is contained in:
parent
ebfd6db4dc
commit
5e5c076c60
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user