diff --git a/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/category/BillCategoriesViewModel.kt b/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/category/BillCategoriesViewModel.kt index d1d098437f..44b2e73c89 100644 --- a/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/category/BillCategoriesViewModel.kt +++ b/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/category/BillCategoriesViewModel.kt @@ -666,13 +666,17 @@ constructor( ) } catch (e: Exception) { updateBillCategoriesState(BillCategoryState.Error) - notifyError() + notifyError(errorConfig = getGenericErrorConfig()) e.log() } } ?: run { updateBillCategoriesState(BillCategoryState.Error) - notifyError() + if (!naviNetworkConnectivity.isInternetConnected()) { + notifyError(errorConfig = getNoInternetErrorConfig()) + } else { + notifyError(errorConfig = getGenericErrorConfig()) + } } } } diff --git a/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/category/BillCategoryViewModelV2.kt b/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/category/BillCategoryViewModelV2.kt index 61316b783e..9407a4ba7f 100644 --- a/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/category/BillCategoryViewModelV2.kt +++ b/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/category/BillCategoryViewModelV2.kt @@ -266,7 +266,11 @@ constructor( } } else if (_billCategoriesStateV2.value !is BillCategoryStateV2.Loaded) { _billCategoriesStateV2.update { BillCategoryStateV2.Error } - notifyError() + if (!naviNetworkConnectivity.isInternetConnected()) { + notifyError(errorConfig = getNoInternetErrorConfig()) + } else { + notifyError(errorConfig = getGenericErrorConfig()) + } } } }