Skip to content

Commit 945c8ad

Browse files
Update app/src/main/java/org/groundplatform/android/ui/home/HomeScreenFragment.kt
Co-authored-by: Andreia Ferreira <51242456+andreia-ferreira@users.noreply.github.com>
1 parent c756b55 commit 945c8ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/org/groundplatform/android/ui/home/HomeScreenFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ class HomeScreenFragment :
195195

196196
@Composable
197197
private fun SetupUserConfirmationDialog() {
198-
val state by homeScreenViewModel.showLogoutDialog.collectAsState()
199-
val user by homeScreenViewModel.user.collectAsState(null)
198+
val state by homeScreenViewModel.showLogoutDialog.collectAsStateWithLifecycle()
199+
val user by homeScreenViewModel.user.collectAsStateWithLifecycle(null)
200200

201201
UserAccountDialogs(
202202
state = state,

0 commit comments

Comments
 (0)