TP-41140 | PS | added safety check for order detail error (#7834)

This commit is contained in:
Prakhar Saxena
2023-09-11 12:46:32 +05:30
committed by GitHub
parent 64e222afad
commit 35b30d7b92
2 changed files with 5 additions and 3 deletions

View File

@@ -174,7 +174,9 @@ class OrderStatusFragment : AmcBaseFragment(), FooterInteractionListener, BackLi
}
}
viewModel.createOrderResponse.observe(viewLifecycleOwner) {
apiPollInit(it)
if(it?.requestId.isNotNullAndNotEmpty()) {
apiPollInit(it)
}
}
viewModel.asyncResponse.observe(viewLifecycleOwner) {
onPollingResponse(it)

View File

@@ -245,10 +245,10 @@ class FundListingFragmentV2 : AmcBaseFragment(), WidgetCallback {
navigateToNextScreen(naviClickAction.actionData)
}
is ActionData -> {
if (naviClickAction.url?.contains(Constants.PAGE_REFRESH)
if (naviClickAction.url?.equals(Constants.PAGE_REFRESH)
.orFalse()
) {
fetchData(showLoader = true)
fetchData(showLoader = true, forceRefresh = true)
} else if (naviClickAction.url?.contains(Constants.ACTION_TYPE_FORCE_PAGE_REFRESH)
.orFalse()
) {