Skip to content
Snippets Groups Projects
Commit dbb9e59e authored by Kamal Bramwell's avatar Kamal Bramwell
Browse files

Hide "no results found" toast, but toast other errors

parent d292b783
No related branches found
No related tags found
4 merge requests!84Version 2.92 build 629,!77v2.9 b627,!72FE-948: Invite Friend,!69FE-937: Show matching requests in search results
...@@ -457,7 +457,9 @@ class UserSearchViewModel @Inject constructor( ...@@ -457,7 +457,9 @@ class UserSearchViewModel @Inject constructor(
val udResult = repo.searchUd(factQuery.fact, factQuery.type).value() val udResult = repo.searchUd(factQuery.fact, factQuery.type).value()
udResult.second?.let { // Error message udResult.second?.let { // Error message
if (it.isNotEmpty()) { if (it.isNotEmpty()) {
if (!it.contains("no results found", true)) {
showToast(it) showToast(it)
}
noResultPlaceholder(factQuery) noResultPlaceholder(factQuery)
} else { // Search result } else { // Search result
udResult.first?.asSearchResult() ?: noResultPlaceholder(factQuery) udResult.first?.asSearchResult() ?: noResultPlaceholder(factQuery)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment