Fix: needs_dog_selection TEXT '0' war truthy — INTEGER + === 1 Check (SW by-v946)

This commit is contained in:
rene 2026-05-14 14:02:17 +02:00
parent 3b666c545f
commit 1ea8127aaf
4 changed files with 16 additions and 10 deletions

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '945'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '946'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
@ -567,8 +567,8 @@ const App = (() => {
navigate('onboarding');
}
// Abo abgelaufen mit mehreren Hunden → Haupthund auswählen
if (state.user.needs_dog_selection && state.dogs.length > 1) {
// Abo abgelaufen mit mehreren Hunden → Haupthund auswählen (nur wenn explizit 1, nicht "0" string)
if (state.user.needs_dog_selection === 1 && state.dogs.length > 1) {
_showDogSelectionModal();
}