We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7319fa6 commit ac3c5c4Copy full SHA for ac3c5c4
GoInfoGame/GoInfoGame/UI/InitialView/InitialViewModel.swift
@@ -54,13 +54,14 @@ class InitialViewModel: ObservableObject {
54
}
55
56
func checkAndDeleteWorkspaceDB(workspaceId: String) {
57
+ isLoading = true
58
if let existingWorkspaceId = KeychainManager.load(key: "workspaceID") {
59
if existingWorkspaceId != workspaceId {
60
print("User is changing the workpace. Delete all existing data from DB")
61
DatabaseConnector.shared.clearDB()
62
63
-
64
+ isLoading = false
65
66
67
0 commit comments