NTP-39209 | lite mandate threshold amount changes (#15477)

This commit is contained in:
Shaurya Rehan
2025-03-21 15:45:51 +05:30
committed by GitHub
parent a0f08f28f0
commit 84e5a3fb28

View File

@@ -463,13 +463,22 @@ constructor(
)
val mandateThresholdAmount =
naviPayUpiLiteConfig
.map { it.config.mandateThresholdAmount }
.flowOn(Dispatchers.Default)
combine(naviPayUpiLiteConfig, upiLiteMandateInfo) { naviPayUpiLiteConfig, upiLiteMandateInfo
->
val thresholdAmountFromConfig = naviPayUpiLiteConfig.config.mandateThresholdAmount
upiLiteMandateInfo?.let {
getLiteMandateMetaDataFromMap(
liteMandateResponseInfo = it.liteMandateResponseInfo
)
.thresholdAmount
?.toIntOrNull() ?: thresholdAmountFromConfig
} ?: thresholdAmountFromConfig
}
.flowOn(coroutineDispatcherProvider.default)
.stateIn(
scope = viewModelScope,
started = SharingStarted.WhileSubscribed(),
initialValue = 0,
initialValue = naviPayUpiLiteConfig.value.config.mandateThresholdAmount,
)
val showLinkedAccountWithActiveLiteAccount =