Skip to content

Commit a9ec5bb

Browse files
KM-16629: PR review comments
1 parent c0fda09 commit a9ec5bb

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

LocalPackages/PIALibrary/Sources/PIALibrary/Account/DefaultAccountProvider.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,12 @@ public final class DefaultAccountProvider: AccountProvider, ConfigurationAccess,
419419
return .failure(error)
420420
case .success(let products):
421421
log.debug("Available products from store: \(products)")
422+
let planProducts = self.planProducts
423+
if planProducts == nil {
424+
log.debug("\(#function) returning empty products")
425+
}
422426
Macros.postNotification(.__InAppDidFetchProducts, [.products: planProducts ?? [:]])
423-
return .success(planProducts!)
427+
return .success(planProducts ?? [:])
424428
}
425429
}
426430

LocalPackages/PIALibrary/Sources/PIALibrary/InApp/AppStoreProvider.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ final class AppStoreProvider: NSObject, InAppProvider {
7575
log.debug("Start observing unfinished transactions")
7676

7777
// On startup we check for unfinished transactions and finish them. With
78-
// out current architecture is difficult to handle them. Users can always
78+
// our current architecture is difficult to handle them. Users can always
7979
// use the restore flow to claim transactions.
8080
transactionObserverTask = Task {
8181
for await result in Transaction.updates {
8282
if Task.isCancelled { break }
8383
switch result {
8484
case .unverified(let transaction, let error):
85-
log.warning("Unverified transaction: \(transaction.id) (\(error)")
85+
log.warning("Unverified transaction: \(transaction.id) \(error)")
8686
await transaction.finish()
8787
case .verified(let transaction):
8888
await transaction.finish()

0 commit comments

Comments
 (0)