From f39b53d9ace7d755d4e1c4b3f4f9806965d4d0c4 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sat, 8 Aug 2026 11:34:16 +0300 Subject: [PATCH] fallback to init route if token not found --- .../vbox/shared/presentation/VBoxRootComponent.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/vbox/client/shared/src/commonMain/kotlin/ru/shadowsparky/vbox/shared/presentation/VBoxRootComponent.kt b/apps/vbox/client/shared/src/commonMain/kotlin/ru/shadowsparky/vbox/shared/presentation/VBoxRootComponent.kt index 54fd8c9..2e51566 100644 --- a/apps/vbox/client/shared/src/commonMain/kotlin/ru/shadowsparky/vbox/shared/presentation/VBoxRootComponent.kt +++ b/apps/vbox/client/shared/src/commonMain/kotlin/ru/shadowsparky/vbox/shared/presentation/VBoxRootComponent.kt @@ -45,8 +45,10 @@ class VBoxRootComponent( if (it != null) { val invalid = runCatching { healthCheck.check() }.getOrNull() == null if (invalid) { navReplace(initRoute) } + } else { + navReplace(initRoute) } - } // i love you + } } } scope.launch {