We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d098ce0 + 743c1af commit 1f78dc2Copy full SHA for 1f78dc2
TangemSdk/TangemSdk/Operations/Backup/BackupService.swift
@@ -214,7 +214,7 @@ public class BackupService: ObservableObject {
214
|| repo.data.primaryCard == nil
215
|| repo.data.backupCards.isEmpty {
216
currentState = .preparing
217
- } else if repo.data.attestSignature == nil || repo.data.backupData.isEmpty {
+ } else if repo.data.attestSignature == nil || repo.data.backupData.count < repo.data.backupCards.count {
218
currentState = .finalizingPrimaryCard
219
} else if repo.data.finalizedBackupCardsCount < repo.data.backupCards.count {
220
currentState = .finalizingBackupCard(index: repo.data.finalizedBackupCardsCount + 1)
0 commit comments