Fix syntax errors blocking app bootstrap

This commit is contained in:
thePR0M3TH3AN committed 2025-10-15 15:08:55 -04:00
1 parent 78ce75ef62
commit 0a2a2c4e78
18 files changed
+80 -64

No files matched your search

+9 -5
View File
@@ -8,8 +8,8 @@ import {
isDevMode,
} from "./config.js";
import { nostrClient } from "./nostr.js";
import {
import { devLogger, userLogger } from "./utils/logger.js";
import {
buildAdminListEvent,
ADMIN_LIST_IDENTIFIERS,
} from "./nostrEventSchemas.js";
@@ -151,8 +151,10 @@ function readJsonListFromStorage(key) {
const parsed = JSON.parse(raw);
return Array.isArray(parsed) ? parsed : null;
} catch (error) {
devLogger.warn(`[adminListStore] Failed to parse legacy list for ${key:`, error);
}
devLogger.warn(
`[adminListStore] Failed to parse legacy list for ${key}:`,
error,
);
return null;
}
}
@@ -198,8 +200,10 @@ function clearLegacyStorageFor(listKey) {
try {
localStorage.removeItem(key);
} catch (error) {
devLogger.warn(`[adminListStore] Failed to clear legacy storage for ${key:`, error);
}
devLogger.warn(
`[adminListStore] Failed to clear legacy storage for ${key}:`,
error,
);
}
}
}