[develop | DONE | FIXED]: smooth-scroll.ts: Accidental error by mistyping.

This commit is contained in:
Konstantina Galouni 2024-05-20 15:24:04 +03:00
parent d3746b28d0
commit 8bcafd3026
1 changed files with 2 additions and 3 deletions

View File

@ -28,7 +28,7 @@ export class SmoothScroll {
if (this.interval) {
clearInterval(this.interval);
}
const fragment = router.parseUrl(routerurl).fragment;
const fragment = router.parseUrl(router.url).fragment;
if (this.lastComponent !== this.currentComponent) {
window.scrollTo({top: 0});
}
@ -77,5 +77,4 @@ export class SmoothScroll {
clearInterval(this.interval);
}
}
}
.
}