NTP-54510 | Divyesh | add no internet handling on landing page empty … (#15772)
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user