Skip to content

Commit af8a145

Browse files
Show search empty state only when the query is not empty
1 parent e33fcbb commit af8a145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/src/main/kotlin/com/woocommerce/android/ui/bookings/list/BookingListScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ private fun EmptyView(
315315
.fillMaxSize()
316316
.padding(32.dp)
317317

318-
if (state.searchState.isSearchActive) {
318+
if (state.searchState.query?.isNotEmpty() == true) {
319319
EmptySearchResultsView(
320-
query = state.searchState.query.orEmpty(),
320+
query = state.searchState.query,
321321
modifier = innerEmptyViewModifier
322322
)
323323
} else {

0 commit comments

Comments
 (0)