diff --git a/src/app/(pages)/(public)/(home)/page.tsx b/src/app/(pages)/(public)/(home)/page.tsx index 7c111eb..7bf32e1 100644 --- a/src/app/(pages)/(public)/(home)/page.tsx +++ b/src/app/(pages)/(public)/(home)/page.tsx @@ -63,7 +63,6 @@ export default async function Home() {
-
{[ ["/tiktok-card.png", "#"], @@ -78,6 +77,7 @@ export default async function Home() { ))}
+ {/* */} diff --git a/src/app/(pages)/(public)/recipes/_components/form.tsx b/src/app/(pages)/(public)/recipes/_components/form.tsx index 18de7f8..f878266 100644 --- a/src/app/(pages)/(public)/recipes/_components/form.tsx +++ b/src/app/(pages)/(public)/recipes/_components/form.tsx @@ -20,7 +20,7 @@ export const Form: React.FC<{ suggestions: Array }> = ({ if (tags?.length) { tags.forEach((tag) => params.append("tags", tag.trim())); } - const endpoint = `/recipes?${params.toString()}&matchAll=true`; + const endpoint = `/recipes?${params.toString()}`; const data = await fetchRecipes(endpoint); console.log("fetched recipes (data): ", data); router.push(endpoint); diff --git a/src/app/(pages)/(public)/recipes/page.tsx b/src/app/(pages)/(public)/recipes/page.tsx index 126169e..37b856d 100644 --- a/src/app/(pages)/(public)/recipes/page.tsx +++ b/src/app/(pages)/(public)/recipes/page.tsx @@ -35,12 +35,12 @@ export default async function RecipesPage({ } // Fetch recipes based on search params - const recipes = await API.get(`recipes?${params.toString()}`).catch( - (reason) => { - console.log(reason); - return []; - } - ); + const recipes = await API.get( + `recipes?${params.toString()}&matchAll=true` + ).catch((reason) => { + console.log(reason); + return []; + }); return ( <> diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index 2b0da31..127d904 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -37,7 +37,7 @@ export const Navbar: React.FC = ({ {label}