remove transformations

This commit is contained in:
Vitor Pamplona
2023-01-19 17:55:37 -05:00
parent c5c8ffc70f
commit 98704bc43d

View File

@@ -70,9 +70,9 @@ data class TabRowItem(
@Composable @Composable
fun ProfileScreen(userId: String?, accountViewModel: AccountViewModel, navController: NavController) { fun ProfileScreen(userId: String?, accountViewModel: AccountViewModel, navController: NavController) {
val accountState by accountViewModel.accountLiveData.observeAsState() val accountState by accountViewModel.accountLiveData.observeAsState()
val account = accountState?.account val account = accountState?.account ?: return
val accountUserState by accountViewModel.userLiveData.observeAsState() val accountUserState by account.userProfile().live.observeAsState()
val accountUser = accountUserState?.user val accountUser = accountUserState?.user
if (userId != null && account != null && accountUser != null) { if (userId != null && account != null && accountUser != null) {