From 4069927b34b918761a5f2fa1f22de6033592c00f Mon Sep 17 00:00:00 2001 From: Ivan Stepanok Date: Wed, 31 May 2023 16:29:54 +0300 Subject: [PATCH] Show EmptyPageIcon() on DashboardView only after fetch is finished. --- Dashboard/Dashboard/Presentation/DashboardView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dashboard/Dashboard/Presentation/DashboardView.swift b/Dashboard/Dashboard/Presentation/DashboardView.swift index cc3430c26..d353148cf 100644 --- a/Dashboard/Dashboard/Presentation/DashboardView.swift +++ b/Dashboard/Dashboard/Presentation/DashboardView.swift @@ -48,7 +48,7 @@ public struct DashboardView: View { withProgress: isIOS14, refresh: true) }) { - if viewModel.courses.isEmpty { + if !viewModel.fetchInProgress || viewModel.courses.isEmpty { EmptyPageIcon() } else { LazyVStack(spacing: 0) {