NTP-7460 | Amount simulation data null fix (#13408)
This commit is contained in:
@@ -391,7 +391,11 @@ class FundBuyingFragmentV2 : AmcBaseFragment(), WidgetCallback {
|
||||
else BigDecimal(0)
|
||||
)
|
||||
}
|
||||
if (errorState != null && userInput.isNotNullAndNotEmpty()) {
|
||||
if (
|
||||
errorState != null &&
|
||||
userInput.isNotNullAndNotEmpty() &&
|
||||
content.fundInvestmentType?.simulationData != null
|
||||
) {
|
||||
viewModel.isAmountErrorState = false
|
||||
if (viewModel.isSipSelected == false) {
|
||||
viewModel
|
||||
@@ -539,7 +543,11 @@ class FundBuyingFragmentV2 : AmcBaseFragment(), WidgetCallback {
|
||||
binding.sipAmount.getUserInput()?.let { sipUserInput ->
|
||||
binding.sipRecommended.setSelectedAmount(sipUserInput)
|
||||
val errorState = binding.sipAmount.getUserInputPostValidation()
|
||||
if (errorState != null && sipUserInput.isNotNullAndNotEmpty()) {
|
||||
if (
|
||||
errorState != null &&
|
||||
sipUserInput.isNotNullAndNotEmpty() &&
|
||||
content.fundInvestmentType?.sipSimulationData != null
|
||||
) {
|
||||
viewModel.isSipErrorState = false
|
||||
if (
|
||||
viewModel.isSipSelected == true &&
|
||||
|
||||
Reference in New Issue
Block a user