Skip to content

Commit

Permalink
Merge pull request #333 from hypercerts-org/fix/buy_button_routing
Browse files Browse the repository at this point in the history
Fix buy button routing
  • Loading branch information
bitbeckers authored Dec 22, 2024
2 parents a6767e2 + b9e2441 commit 8f185e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions components/marketplace/buy-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export function BuyButton() {
const listingsSection = document.getElementById("marketplace-listings");
if (listingsSection) {
listingsSection.scrollIntoView({ behavior: "smooth" });
} else {
console.error("Marketplace listings section not found");
}
};

Expand Down
6 changes: 3 additions & 3 deletions components/marketplace/hypercert-listings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import Pagination from "../global/pagination/pagination";
import HypercertListingsTable from "./hypercert-listings-table";

function ListingsListNoResults() {
return "No listings found";
return <InfoSection>We couldn&apos;t find any listings...</InfoSection>;
}

function ListingsListLoadError() {
return <InfoSection>We couldn&apos;t find any listings...</InfoSection>;
return <InfoSection>Error loading listings...</InfoSection>;
}

const getListingsData = cache(async (params: GetAllListingsParams) => {
Expand Down Expand Up @@ -59,7 +59,7 @@ export default async function HypercertListings({
}

return (
<div className="w-full">
<div id="marketplace-listings" className="w-full">
<Suspense fallback={<PageSkeleton />}>
<HypercertListingsTable
orders={orders.data}
Expand Down

0 comments on commit 8f185e9

Please sign in to comment.