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