diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt index 23b48eb..8fa596f 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt @@ -55,6 +55,7 @@ class DashboardActivity : ComponentActivity() { val dashboardViewModel = DashboardViewModel(user, vastApi) lifecycleScope.launch { + dashboardViewModel.refresh() repeatOnLifecycle(Lifecycle.State.STARTED) { dashboardViewModel.refreshError.collect { it.forEach { errorMsg ->