Skip to content

Commit

Permalink
fixed useHook dependency error
Browse files Browse the repository at this point in the history
  • Loading branch information
ammaaraslam committed Aug 27, 2022
1 parent ba9fb3d commit c7633ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta/DefMeta.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function DefMeta() {

// Logic to set title of website dynamically depending on the path.
routes.some((route) => route.path === currentPath && setTitle(route.title));
}, [currentPath, routes]);
}, [currentPath]);
return (
<Helmet>
<title>{title}</title>
Expand Down

0 comments on commit c7633ff

Please sign in to comment.