NTP-54510 | Divyesh | add no internet handling on landing page empty … (#15772)

This commit is contained in:
Divyesh Shinde
2025-04-11 20:34:13 +05:30
committed by GitHub
parent 49530262f3
commit d559348f8e
2 changed files with 11 additions and 3 deletions

View File

@@ -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())
}
}
}
}

View File

@@ -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())
}
}
}
}