Skip to content

Commit

Permalink
Don't show homepage for 0.1s after refreshing contract view
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Jun 20, 2024
1 parent f9c4ff1 commit 1f5022e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ const Home: NextPage = () => {

const QueryRouter = () => {
const router = useRouter();
if (!router.isReady) return null;

return typeof router.query.contractAddress === "string" && typeof router.query.network === "string" ? (
<ContractDetailPage contractAddress={router.query.contractAddress} network={router.query.network} />
) : (
Expand Down

0 comments on commit 1f5022e

Please sign in to comment.