mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-14 20:11:22 +00:00
Add comment TODO
This commit is contained in:
parent
f0805e1da5
commit
16ec63eb17
@ -1281,7 +1281,6 @@ export async function addUserSettings({ keyValue }) {
|
|||||||
getData<any>(`${address}-userSettings`)
|
getData<any>(`${address}-userSettings`)
|
||||||
.then((storedData) => {
|
.then((storedData) => {
|
||||||
storedData = storedData || {}; // Initialize if no data found
|
storedData = storedData || {}; // Initialize if no data found
|
||||||
|
|
||||||
storedData[key] = value; // Update the key-value pair within stored data
|
storedData[key] = value; // Update the key-value pair within stored data
|
||||||
|
|
||||||
// Save updated structure back to localStorage
|
// Save updated structure back to localStorage
|
||||||
@ -3393,7 +3392,7 @@ const checkGroupList = async () => {
|
|||||||
.filter(
|
.filter(
|
||||||
(item) =>
|
(item) =>
|
||||||
item?.name !== 'extension-proxy' &&
|
item?.name !== 'extension-proxy' &&
|
||||||
item?.address !== 'QSMMGSgysEuqDCuLw3S4cHrQkBrh3vP3VH'
|
item?.address !== 'QSMMGSgysEuqDCuLw3S4cHrQkBrh3vP3VH' // TODO put address in a specific file
|
||||||
)
|
)
|
||||||
.sort((a, b) => (b.timestamp || 0) - (a.timestamp || 0));
|
.sort((a, b) => (b.timestamp || 0) - (a.timestamp || 0));
|
||||||
|
|
||||||
@ -3447,6 +3446,7 @@ export const checkNewMessages = async () => {
|
|||||||
const latestMessage = responseData.filter(
|
const latestMessage = responseData.filter(
|
||||||
(pub) => pub?.name !== myName
|
(pub) => pub?.name !== myName
|
||||||
)[0];
|
)[0];
|
||||||
|
|
||||||
if (!latestMessage) {
|
if (!latestMessage) {
|
||||||
return; // continue to the next group
|
return; // continue to the next group
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user