fix save journal button and reactive city filtering by country

This commit is contained in:
haerikimmm
2026-06-16 18:32:48 +09:00
parent 92fae28383
commit ec4eea0977
2 changed files with 16 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ export function initEntriesListener(uid) {
}
export async function addEntry(data) {
if (!_uid) return null;
if (!_uid) throw new Error('Not logged in');
const ref = await addDoc(collection(db, 'users', _uid, 'entries'), {
...data,
createdAt: serverTimestamp(),