Check all accounts, not just active, for the iCloud account

This commit is contained in:
Maurice Parker 2020-10-27 20:40:24 -05:00
parent e0be6bec52
commit d14a519a35
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ private extension AccountsAddViewController {
return
}
if AccountManager.shared.activeAccounts.firstIndex(where: { $0.type == .cloudKit }) != nil {
if AccountManager.shared.accounts.firstIndex(where: { $0.type == .cloudKit }) != nil {
removeAccountType(.cloudKit)
}
}