TP-68190 remove over riding of nux source in cta parameters (#11719)

This commit is contained in:
Hitesh Kumar
2024-07-05 10:12:46 +05:30
committed by GitHub
parent f6f25d8d07
commit 661c81bb6e

View File

@@ -220,7 +220,9 @@ constructor(
// To be removed when the NUX is driven by backend CTA using post-render action
fun addUpiNuxCtaParams(ctaData: CtaData, source: String): CtaData {
ctaData.addLineItemToCtaParams(LineItem(key = REDIRECTION_URL, value = UPI_NUX_SCREEN))
ctaData.addLineItemToCtaParams(LineItem(key = SOURCE, value = source))
if (ctaData.parameters?.firstOrNull { it.key == SOURCE }?.value.isNotNullAndNotEmpty()) {
ctaData.addLineItemToCtaParams(LineItem(key = SOURCE, value = source))
}
return ctaData
}