Revert change in PokeSearch.kt
This commit is contained in:
		@@ -42,16 +42,14 @@ fun PokeSearch(pokeSearchViewModel: PokeSearchViewModel) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        Spacer(modifier = Modifier.height(16.dp))
 | 
					        Spacer(modifier = Modifier.height(16.dp))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (searchResults != null) {
 | 
					        searchResults?.let { results ->
 | 
				
			||||||
            if (searchResults!!.isNotEmpty()) {
 | 
					            if (results.isNotEmpty()) {
 | 
				
			||||||
                searchResults!!.forEach { pokemon ->
 | 
					                results.forEach { pokemon ->
 | 
				
			||||||
                    Text(text = pokemon.name)
 | 
					                    Text(text = pokemon.name)
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                Text("No results found")
 | 
					                Text("No results found")
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } else {
 | 
					 | 
				
			||||||
            Text("Enter a pokemon name to search")
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user