restaurants are ready
This commit is contained in:
@@ -19,8 +19,8 @@ export default function SearchBar() {
|
||||
<button
|
||||
className="rounded bg-red-600 px-9 py-2 text-white"
|
||||
onClick={() => {
|
||||
if (location === "banana") return;
|
||||
router.push("/search");
|
||||
if (location === "") return;
|
||||
router.push(`/search?city=${location}`);
|
||||
}}
|
||||
>
|
||||
Let's go
|
||||
|
||||
Reference in New Issue
Block a user