From e4061a4b7e57137e95dc96bc83ca5cb9c79020dc Mon Sep 17 00:00:00 2001 From: Bruno Lazarini Sigg Date: Thu, 19 Dec 2024 14:27:37 +0100 Subject: [PATCH] feat: update log --- app/src/main/java/com/android/periodpals/ui/map/Map.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/android/periodpals/ui/map/Map.kt b/app/src/main/java/com/android/periodpals/ui/map/Map.kt index 8604f7c0..8c793d43 100644 --- a/app/src/main/java/com/android/periodpals/ui/map/Map.kt +++ b/app/src/main/java/com/android/periodpals/ui/map/Map.kt @@ -274,11 +274,10 @@ fun MapScreen( Log.d(TAG, "Successfully fetched alerts within radius: $radiusInMeters") }, onFailure = { e -> Log.e(TAG, "Error fetching alerts within radius", e) }) - } ?: Log.d(TAG, "Please select a valid location") + } ?: Log.d(TAG, "Selected location is null") // Due to lazy evaluation, if the first clause is true, then the second will be - // skipped - // and it will evaluate the third clause after the &&. + // skipped and it will evaluate the third clause after the &&. alertViewModel.setFilter { (productFilter == Product.NO_PREFERENCE || (it.product == productFilter || it.product == Product.NO_PREFERENCE)) &&