restaurants are ready

This commit is contained in:
2023-02-18 18:52:54 +02:00
parent 0ba05b6434
commit cbd1104a43
3 changed files with 60 additions and 11 deletions
+2 -2
View File
@@ -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