From aedb3012a4dc9b0dc0f2d70d6fdb9b6e8f278636 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 3 Dec 2020 15:05:57 -0600 Subject: [PATCH] Prefers paid developer teams over free teams --- AltStore/Operations/AuthenticationOperation.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AltStore/Operations/AuthenticationOperation.swift b/AltStore/Operations/AuthenticationOperation.swift index 36876e4a..d0055950 100644 --- a/AltStore/Operations/AuthenticationOperation.swift +++ b/AltStore/Operations/AuthenticationOperation.swift @@ -432,11 +432,11 @@ private extension AuthenticationOperation { func selectTeam(from teams: [ALTTeam]) { - if let team = teams.first(where: { $0.type == .free }) + if let team = teams.first(where: { $0.type == .individual }) { return completionHandler(.success(team)) } - else if let team = teams.first(where: { $0.type == .individual }) + else if let team = teams.first(where: { $0.type == .free }) { return completionHandler(.success(team)) }