🔍 Search for compatible iPad and iPhone apps

This commit is contained in:
Chris Araman 2021-05-12 17:15:29 -07:00 committed by Ben Chatelain
parent 763392cb23
commit 436c3a250d

View file

@ -72,6 +72,8 @@ class MasStoreSearch: StoreSearch {
loadSearchResults(url) loadSearchResults(url)
}.then { results -> Guarantee<SearchResult?> in }.then { results -> Guarantee<SearchResult?> in
guard let result = results.first else { guard let result = results.first else {
return try JSONDecoder().decode(SearchResultList.self, from: data).results
} catch {
return .value(nil) return .value(nil)
} }