refac: chat input object localStorage -> sessionStorage

This commit is contained in:
Timothy Jaeryang Baek committed 2025-06-18 16:02:29 +04:00
1 parent 34440f95dc
commit 1547235d47
4 files changed
+17 -13

No files matched your search

+1 -3
View File
@@ -78,9 +78,7 @@
// IndexedDB Not Found
}
const chatInputKeys = Object.keys(localStorage).filter((key) =>
key.startsWith('chat-input-')
);
const chatInputKeys = Object.keys(localStorage).filter((key) => key.startsWith('chat-input'));
if (chatInputKeys.length > 0) {
chatInputKeys.forEach((key) => {
localStorage.removeItem(key);