Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-09 15:05:17 +01:00
parent 437f9a0f0d
commit 76841e8f62
2 changed files with 4 additions and 4 deletions

View file

@ -45,13 +45,13 @@ internal class QrScanningClickIntentsImplementor @Inject constructor(
override fun onQrScanned(qrCode: String) {
if (qrCode.isNotBlank()) {
viewModelScope.launch(dispatcher.mainImmediate) {
emitQrScannedEventUseCase.invoke(source, qrCode)
}
if (!isScanned) {
router.popBackStack()
isScanned = true
}
viewModelScope.launch(dispatcher.main) {
emitQrScannedEventUseCase.invoke(source, qrCode)
}
}
}