including null case in the authentication when
This commit is contained in:
parent
d002ab6a6b
commit
5d0d177a7a
@ -122,8 +122,7 @@ class HomeActivityViewModel @AssistedInject constructor(
|
||||
}
|
||||
.launchIn(viewModelScope)
|
||||
|
||||
initialState.authenticationDescription?.let { recentAuthentication ->
|
||||
when (recentAuthentication) {
|
||||
when (val recentAuthentication = initialState.authenticationDescription) {
|
||||
is AuthenticationDescription.Register -> {
|
||||
viewModelScope.launch {
|
||||
analyticsStore.onUserGaveConsent {
|
||||
@ -134,6 +133,8 @@ class HomeActivityViewModel @AssistedInject constructor(
|
||||
AuthenticationDescription.Login -> {
|
||||
// do nothing
|
||||
}
|
||||
null -> {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user