Skip to content

Commit

Permalink
fix(search-params): succesfully fixed params not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
devinpapalangi committed Aug 8, 2024
1 parent 4b21684 commit 87a00bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { SafeListing } from "./types";
import ListingCard from "./components/Listing/ListingCard";

interface Props {
search: ListingQueryParams;
searchParams: ListingQueryParams;
}
export default async function Home({ search }: Props) {
export default async function Home({ searchParams }: Props) {
const [listings, currentUser] = await Promise.all([
getListings(search),
getListings(searchParams),
getCurrentUser(),
]);

Expand Down

0 comments on commit 87a00bc

Please sign in to comment.