Skip to content

Commit 7e91511

Browse files
committed
Fixed loading issue on coming back from profile screen
1 parent 2c56933 commit 7e91511

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

GoInfoGame/GoInfoGame/UI/InitialView/InitialView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ struct InitialView: View {
6161
}
6262
}
6363
.onAppear {
64-
viewModel.isLoading = true
6564
viewModel.checkBiometricOptInCondition(for: APIConfiguration.shared.environment)
6665
showBiometricPrompt = viewModel.shouldShowBiometricOptInPrompt
6766
}

GoInfoGame/GoInfoGame/UI/InitialView/InitialViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class InitialViewModel: ObservableObject {
5959

6060
// fetch workspaces list
6161
func fetchWorkspacesList() {
62-
62+
self.isLoading = true
6363
if let accessToken = KeychainManager.load(key: "accessToken") {
6464
ApiManager.shared.performRequest(to: .fetchWorkspaceList(accessToken), setupType: .workspace, modelType: [Workspace].self) { result in
6565

0 commit comments

Comments
 (0)