Skip to content

Commit 4f5c325

Browse files
authored
Update BidiViewModel.kt (#2740)
Fix for fetchWeather function
1 parent ba3f7bd commit 4f5c325

File tree

1 file changed

+1
-1
lines changed
  • firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/feature/live

1 file changed

+1
-1
lines changed

firebase-ai/app/src/main/java/com/google/firebase/quickstart/ai/feature/live/BidiViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class BidiViewModel(savedStateHandle: SavedStateHandle) : ViewModel() {
6060
val date = it.args["date"]?.jsonPrimitive?.content
6161
runBlocking {
6262
response =
63-
if (!city.isNullOrEmpty() and !state.isNullOrEmpty() and date.isNullOrEmpty()) {
63+
if (!city.isNullOrEmpty() and !state.isNullOrEmpty() and !date.isNullOrEmpty()) {
6464
fetchWeather(city!!, state!!, date!!)
6565
} else {
6666
JsonObject(emptyMap())

0 commit comments

Comments
 (0)