make billing tab work with the new viewmodel

This commit is contained in:
Minecon724 2024-07-31 15:54:32 +02:00
parent f4b3760d84
commit c8e3635232
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -32,7 +32,7 @@ import eu.m724.vastapp.activity.dashboard.DashboardViewModel
fun BillingScreen(dashboardViewModel: DashboardViewModel) {
val uiState by dashboardViewModel.uiState.collectAsState()
val user by remember(uiState) { derivedStateOf { uiState.user } }
val user by dashboardViewModel.user.collectAsState()
Column(
modifier = Modifier.fillMaxWidth(),