Skip to content

Commit 5abbf62

Browse files
committed
Exclude 'any' booking type from filter count
Do not increment the active filter count when the booking type filter is set to 'Any'.
1 parent 5179aab commit 5abbf62

File tree

1 file changed

+1
-1
lines changed
  • libs/fluxc-plugin/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/bookings

1 file changed

+1
-1
lines changed

libs/fluxc-plugin/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/bookings/BookingsFilterOption.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ data class BookingFilters(
4343
if (teamMember != null) count++
4444
if (attendanceStatus != null) count++
4545
if (paymentStatus != null) count++
46-
if (bookingType != null) count++
46+
if (bookingType != null && bookingType.value != BookingsFilterOption.BookingType.Type.ANY) count++
4747
if (location != null) count++
4848
if (serviceEvent != null) count++
4949
return count

0 commit comments

Comments
 (0)