Skip to content

Commit

Permalink
Update Scroll to Section twice
Browse files Browse the repository at this point in the history
  • Loading branch information
devalentineomonya authored Mar 15, 2024
1 parent b772ee8 commit 26d2b73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import React, { useEffect } from "react";
const Home = ({ activeTab, setActiveTab }) => {
const hash = window.location.hash.substr(1);
useEffect(() => {
scrollToSection(hash);
scrollToSection(hash);
setActiveTab(hash);
}, [hash]);
Expand Down

0 comments on commit 26d2b73

Please sign in to comment.