diff --git a/features/profile/src/main/kotlin/app/dapk/st/profile/ProfileViewModel.kt b/features/profile/src/main/kotlin/app/dapk/st/profile/ProfileViewModel.kt index bb3cfb6..ac5806c 100644 --- a/features/profile/src/main/kotlin/app/dapk/st/profile/ProfileViewModel.kt +++ b/features/profile/src/main/kotlin/app/dapk/st/profile/ProfileViewModel.kt @@ -104,7 +104,23 @@ class ProfileViewModel( } fun reset() { - updateState { ProfileScreenState(SpiderPage(Page.Routes.profile, "Profile", null, Page.Profile(Lce.Loading()), hasToolbar = false)) } + when (state.page.state) { + is Page.Invitations -> updateState { + ProfileScreenState( + SpiderPage( + Page.Routes.profile, + "Profile", + null, + Page.Profile(Lce.Loading()), + hasToolbar = false + ) + ) + } + + is Page.Profile -> { + // do nothing + } + } } fun stop() {