Skip to content

Commit

Permalink
Fix incorrect observing of authorizedState value
Browse files Browse the repository at this point in the history
  • Loading branch information
Garneg committed Jul 21, 2024
1 parent 5f182cf commit 033dda8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ fun MainScreen(
.collectAsState(initial = null)

LaunchedEffect(key1 = authorizedState, block = {
isAuthorized = authorizedState == true
authorizedState?.let {
isAuthorized = it
}
})

val viewModel = viewModel<MainScreenViewModel>(viewModelStoreOwner = viewModelStoreOwner) {
Expand Down Expand Up @@ -288,7 +290,6 @@ fun MainScreen(
checkInternetConnection = false
}
})
val coroutineScope = rememberCoroutineScope()
if (showNoInternetConnectionElement) {

NoInternetElement(
Expand Down

0 comments on commit 033dda8

Please sign in to comment.