Skip to content

Commit

Permalink
fix: no filter bubble should appear when the no alerts are being filt…
Browse files Browse the repository at this point in the history
…ered
  • Loading branch information
lazarinibruno committed Dec 19, 2024
1 parent e4061a4 commit 6261efc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/com/android/periodpals/ui/map/Map.kt
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ fun MapScreen(
radiusInMeters = radius
productFilter = stringToProduct(product)
urgencyFilter = stringToUrgency(urgency)
isFilterApplied = true
isFilterApplied =
(radius != 100.0) ||
(productFilter != Product.NO_PREFERENCE) ||
(urgencyFilter != null)

Log.d(TAG, "The selected location is: $selectedLocation")

Expand Down

0 comments on commit 6261efc

Please sign in to comment.