Skip to content

Commit

Permalink
IOS-3268 Update cards after code fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
tureck1y committed Mar 22, 2023
1 parent ef61d8d commit dbabc6a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ public class AccessCodeRepository {
for cardId in self.getCards() {
let accessCode = try self.biometricsStorage.get(SecureStorageKey.accessCode(for: cardId), context: context)
fetchedAccessCodes[cardId] = accessCode
Log.debug("The access code for cardId \(cardId) was fetched successfully")
Log.debug("Fetch the access code for the \(cardId). Result is \(accessCode != nil)")
}

self.accessCodes = fetchedAccessCodes
self.saveCards(cardIds: Set(fetchedAccessCodes.keys)) // Actualize all the cards. E.g. if biometrics was changed.
completion(.success(()))
} catch {
Log.error(error)
Expand Down

0 comments on commit dbabc6a

Please sign in to comment.