NTP-39209 | lite mandate threshold amount changes (#15477)
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user