Skip to content

Commit

Permalink
Update Call Scroll function twice
Browse files Browse the repository at this point in the history
  • Loading branch information
devalentineomonya authored Mar 15, 2024
1 parent 45384bf commit 9904f47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/NavBar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Navbar = ({ activeTab, setActiveTab }) => {
event.preventDefault();
setActiveTab(tabName);
scrollToSection(tabName);
scrollToSection(tabName);
};

return (
Expand Down

0 comments on commit 9904f47

Please sign in to comment.