fix: Demo-Daten und localStorage-Logik

This commit is contained in:
Alicia
2026-06-29 07:10:00 +00:00
parent 321140ff86
commit 1458089e7b
+2 -1
View File
@@ -1903,7 +1903,8 @@ h2 {
applyTheme();
subscribeToSystemThemeChange();
if (tasks.length === 0 && habits.length === 0) {
// Demo-Daten laden wenn localStorage leer ist oder keine echten Daten hat
if (localStorage.getItem('nv_t') === null || localStorage.getItem('nv_t') === '[]') {
loadDemoData();
}