Skip to content

Commit

Permalink
Update PropertyListBuy.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Jun 7, 2024
1 parent 228508b commit 2cb5ae5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/nextjs/components/PropertyListBuy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import { useState } from "react";
import { useRouter } from "next/router";
import {
BidModal,
BuyModal,
Expand Down Expand Up @@ -34,7 +35,7 @@ const BidOffers = ({ deedData }: Props) => {
const listOpenState = useState(false);
const { connectWallet } = useWallet();
const { fees } = useFeesClient();
const { id: chainId } = getTargetNetwork();
const router = useRouter();
const listings = useListings({
token: tokenWithId,
});
Expand Down Expand Up @@ -76,7 +77,7 @@ const BidOffers = ({ deedData }: Props) => {
notification.success("Property listed");
}}
onGoToToken={() => {
window.open(`/overview/${deedData.id}`);
router.push(`/overview/${deedData.id}`);
}}
onClose={() => {
listings.mutate();
Expand Down

0 comments on commit 2cb5ae5

Please sign in to comment.