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 {