NTP-7460 | Amount simulation data null fix (#13408)

This commit is contained in:
Varun Jain
2024-11-04 19:43:30 +05:30
committed by GitHub
parent 179c388737
commit 117558888f

View File

@@ -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 &&