Updated on 2026-08-14

This commit is contained in:
Tangem 2021-09-22 11:07:39 +00:00
commit 7eed9bc250

View file

@ -105,8 +105,14 @@ class WalletMiddleware {
)
when (result) {
is CompletionResult.Success -> {
val card = globalState?.scanNoteResponse?.card?.let {
result.data.copy(
isPin1Default = it.isPin1Default,
isPin2Default = it.isPin2Default,
)
} ?: result.data
val scanNoteResponse =
globalState?.scanNoteResponse?.copy(card = result.data)
globalState?.scanNoteResponse?.copy(card = card)
scanNoteResponse?.let {
globalState.tapWalletManager.onCardScanned(scanNoteResponse)
}