Skip to content

Commit

Permalink
changed the router to go to the root route rather than back
Browse files Browse the repository at this point in the history
  • Loading branch information
akshidas committed Aug 7, 2022
1 parent 4791ff9 commit 828991d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/blog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Blog = ({ posts }) => {

useIsomorphicLayoutEffect(() => {
if (showBlog.current) stagger([text.current], { y: 30 }, { y: 0 });
else router.back();
else router.push("/");
}, []);

useEffect(() => {
Expand Down

0 comments on commit 828991d

Please sign in to comment.