Fix: Nach Login ohne Hund → Onboarding mit Skip-Option statt direkt zu dog-profile (SW by-v748)

This commit is contained in:
rene 2026-05-06 21:02:55 +02:00
parent fd87c9af7b
commit 81bc0f50a0
6 changed files with 11 additions and 8 deletions

View file

@ -440,9 +440,12 @@ window.Page_onboarding = (() => {
function _finish() {
localStorage.setItem('by_onboarding_done', '1');
if (_appState.dogs.length > 0) {
App.navigate('diary');
if (window.Worlds) window.Worlds.init(_appState);
else App.navigate('diary');
} else {
App.navigate('map');
// Ohne Hund: Welten zeigen (HUND-Tab mit "Jetzt anlegen"-Karte)
if (window.Worlds) window.Worlds.init(_appState);
else App.navigate('welcome');
}
}