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 541ab39..96989d0 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 @@ -52,7 +52,8 @@ class DashboardActivity : ComponentActivity() { lifecycleScope.launch { repeatOnLifecycle(Lifecycle.State.STARTED) { dashboardViewModel.refreshError.collect { - Toast.makeText(baseContext, it, Toast.LENGTH_SHORT).show() + if (it != null) + Toast.makeText(baseContext, it, Toast.LENGTH_SHORT).show() } // TODO any better way? } }