local storage fix

This commit is contained in:
Chad Curtis committed 2025-09-06 03:28:54 +00:00
1 parent ba273282db
commit c8e78f8a19
3 files changed
+113 -240

No files matched your search

+2 -5
View File
@@ -19,7 +19,7 @@ import { useKeepAlive } from '@/hooks/useKeepAlive';
import { GitStatusIndicator } from '@/components/GitStatusIndicator';
import { StarButton } from '@/components/StarButton';
import { useProjectSessionCleanup } from '@/hooks/useProjectSessionCleanup';
import { generateSecretKey, getPublicKey, nip19 } from 'nostr-tools';
import { bytesToHex } from 'nostr-tools/utils';
import { buildProject } from "@/lib/build";
@@ -63,7 +63,7 @@ export function ProjectView() {
]
});
const { cleanupProjectSessions } = useProjectSessionCleanup(project?.id || '');
const loadProject = useCallback(async () => {
if (!projectId) return;
@@ -194,9 +194,6 @@ BASE_DOMAIN=nostrdeploy.com`);
};
const handleProjectDeleted = async () => {
if (project) {
await cleanupProjectSessions();
}
setProject(null);
navigate('/');
};