Updated on 2026-08-14
This commit is contained in:
parent
2f625b4b5a
commit
bc00c1f06c
2 changed files with 3 additions and 3 deletions
|
|
@ -18,8 +18,8 @@ fun Store<*>.dispatchOnMain(action: Action) {
|
|||
}
|
||||
}
|
||||
|
||||
suspend fun Store<*>.onCardScanned(scanResponse: ScanResponse) {
|
||||
store.state.globalState.tapWalletManager.onCardScanned(scanResponse)
|
||||
suspend fun Store<*>.onCardScanned(scanResponse: ScanResponse, addAnalytics: Boolean = true) {
|
||||
store.state.globalState.tapWalletManager.onCardScanned(scanResponse, addAnalytics)
|
||||
}
|
||||
|
||||
fun Store<*>.dispatchOpenUrl(url: String) {
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ class WalletMiddleware {
|
|||
when (result) {
|
||||
is CompletionResult.Success -> {
|
||||
val scanNoteResponse = globalState.scanResponse?.copy(card = result.data)
|
||||
scanNoteResponse?.let { store.onCardScanned(scanNoteResponse) }
|
||||
scanNoteResponse?.let { store.onCardScanned(scanNoteResponse, false) }
|
||||
}
|
||||
is CompletionResult.Failure -> {
|
||||
(result.error as? TangemSdkError)?.let { error ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue