fix condition

This commit is contained in:
MM20
2025-08-31 21:22:49 +02:00
parent 55365fbc59
commit 93fed77410

View File

@@ -37,7 +37,7 @@ internal class LocationsRepository(
query: String,
allowNetwork: Boolean
): Flow<ImmutableList<Location>> {
if (query.isBlank() && query.length > 1) {
if (query.isBlank() || query.length <= 1) {
return flowOf(persistentListOf())
}
return combineTransform(