Skip to content

Commit 3b6de24

Browse files
committed
fix: reset pin on settings backup
1 parent 82efdce commit 3b6de24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/to/bitkit/repositories/BackupsRepo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class BackupsRepo @Inject constructor(
244244

245245
private suspend fun getBackupDataBytes(category: BackupCategory): ByteArray = when (category) {
246246
BackupCategory.SETTINGS -> {
247-
val data = settingsStore.data.first()
247+
val data = settingsStore.data.first().resetPin()
248248
json.encodeToString(data).toByteArray()
249249
}
250250

0 commit comments

Comments
 (0)