fix: Demo-Daten und localStorage-Logik
This commit is contained in:
+2
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user