Re-use local storage prompt on index until project has been created.

This commit is contained in:
Chad Curtis committed 2025-07-28 14:13:08 +00:00
1 parent 213eda9797
commit 00a24f13b6
1 file changed
+6 -1
+6 -1
View File
@@ -64,7 +64,12 @@ export default function Index() {
loadProjects();
}, [loadProjects]);
// Restore prompt from local storage on mount
useEffect(() => {
if (storedPrompt) {
setPrompt(storedPrompt);
}
}, [storedPrompt]);
// Sync prompt with local storage
const handlePromptChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {