Skip to content

Commit

Permalink
IOS-7148 Ignore invalid state
Browse files Browse the repository at this point in the history
  • Loading branch information
tureck1y committed Sep 5, 2024
1 parent b9111e3 commit a4d7c1f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ class FinalizePrimaryCardTask: CardSessionRunnable {
case .success:
completion(.success(card))
case .failure(let error):
// Backup data already finalized, but we didn't catch the original response due to NFC errors or tag lost. Just cover invalid state error
if case .invalidState = error {
Log.debug("Got \(error). Ignoring..")
completion(.success(card))
return
}

completion(.failure(error))
}

Expand Down

0 comments on commit a4d7c1f

Please sign in to comment.