diff --git a/components/navbar.vue b/components/navbar.vue index e3272c3..85ab200 100644 --- a/components/navbar.vue +++ b/components/navbar.vue @@ -44,7 +44,8 @@ const scrollToSection = async (el) => { section: id } }) - section.scrollIntoView({ behavior: 'smooth' }) + const section = document.getElementById(id) + section.scrollIntoView({ behavior: "smooth" }) }