Skip to content

Commit

Permalink
Merge pull request #17 from stslex/dev
Browse files Browse the repository at this point in the history
Fix home crush
  • Loading branch information
stslex committed Aug 31, 2023
2 parents e7af050 + 81f157b commit 8aeb1aa
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.stslex.aproselection.core.user.data.repository

import com.stslex.aproselection.core.network.clients.user.model.UpdateUserInfoBody
import com.stslex.aproselection.core.user.data.model.UserData
import com.stslex.aproselection.core.user.data.model.UserUpdateData

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AuthViewModel(

fun processNavigation(event: Event.Navigation) {
when (event) {
Event.Navigation.AuthFeature -> navigator.navigate(NavigationScreen.Auth)
Event.Navigation.HomeFeature -> navigator.navigate(NavigationScreen.Home)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface AuthStore : Store<State, Event, Action> {

sealed interface Navigation : Event {

data object AuthFeature : Navigation
data object HomeFeature : Navigation
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class AuthStoreImpl(
}
.onEach {
setLoadingState(ScreenLoadingState.Content)
sendEvent(Event.Navigation.AuthFeature)
sendEvent(Event.Navigation.HomeFeature)
}
.flowOn(Dispatchers.IO)
.launchIn(scope)
Expand Down

0 comments on commit 8aeb1aa

Please sign in to comment.