Skip to content

Commit 1f78dc2

Browse files
authored
Merge pull request #358 from tangem/IOS-6859_fix_backup_condition
IOS-6859 Check for cards count
2 parents d098ce0 + 743c1af commit 1f78dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TangemSdk/TangemSdk/Operations/Backup/BackupService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public class BackupService: ObservableObject {
214214
|| repo.data.primaryCard == nil
215215
|| repo.data.backupCards.isEmpty {
216216
currentState = .preparing
217-
} else if repo.data.attestSignature == nil || repo.data.backupData.isEmpty {
217+
} else if repo.data.attestSignature == nil || repo.data.backupData.count < repo.data.backupCards.count {
218218
currentState = .finalizingPrimaryCard
219219
} else if repo.data.finalizedBackupCardsCount < repo.data.backupCards.count {
220220
currentState = .finalizingBackupCard(index: repo.data.finalizedBackupCardsCount + 1)

0 commit comments

Comments
 (0)