mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-25 04:17:52 +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
|
// Retrieve the existing thread activity data
|
||||||
const storedData = localStorage.getItem(key);
|
const storedData = localStorage.getItem(key);
|
||||||
|
|
||||||
let threads;
|
let threads;
|
||||||
|
|
||||||
if (!storedData) {
|
if (!storedData) {
|
||||||
@ -549,7 +550,7 @@ export function updateThreadActivity({
|
|||||||
lastResetTime: 0,
|
lastResetTime: 0,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
threads = storedData;
|
threads = JSON.parse(storedData);
|
||||||
}
|
}
|
||||||
|
|
||||||
let lastResetTime = threads.lastResetTime || 0;
|
let lastResetTime = threads.lastResetTime || 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user