Updated on 2026-08-14
This commit is contained in:
parent
c9d28994b4
commit
83e6ed6171
2 changed files with 3 additions and 8 deletions
|
|
@ -15,7 +15,7 @@ import com.tangem.tap.features.demo.DemoHelper
|
|||
[REDACTED_AUTHOR]
|
||||
*/
|
||||
class CardContextInterceptor(
|
||||
private val scanResponse: ScanResponse?,
|
||||
private val scanResponse: ScanResponse,
|
||||
) : ParamsInterceptor {
|
||||
|
||||
override fun id(): String = CardContextInterceptor.id()
|
||||
|
|
@ -28,8 +28,6 @@ class CardContextInterceptor(
|
|||
}
|
||||
|
||||
override fun intercept(params: MutableMap<String, String>) {
|
||||
scanResponse ?: return
|
||||
|
||||
val card = scanResponse.card
|
||||
params[AnalyticsParam.BATCH] = card.batchId
|
||||
params[AnalyticsParam.PRODUCT_TYPE] = getProductType(scanResponse)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue