From c8e363523233303398fca5e024d19ba8976a6c8e Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Wed, 31 Jul 2024 15:54:32 +0200 Subject: [PATCH] make billing tab work with the new viewmodel --- .../java/eu/m724/vastapp/activity/dashboard/screen/Billing.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Billing.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Billing.kt index d800216..9b90f2c 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Billing.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/screen/Billing.kt @@ -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(),