remove transformations
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user