Skip to content

Commit

Permalink
fix: fix broken routing logic on blog
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Won committed Sep 26, 2020
1 parent 6c8edfb commit 3966acd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/layouts/Mdx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ export interface IMdxProps {
export default function Mdx({ frontMatter, children }: IMdxProps) {
const router = useRouter();

useEffect(() => {
router.push(window.location.hash);
}, []);
const { Heading, Divider } = chakraComponents;
return (
<Layout>
Expand Down

0 comments on commit 3966acd

Please sign in to comment.