Skip to content

Commit 814f86f

Browse files
Removido erro de tipagem.
1 parent 39cf7d1 commit 814f86f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/BackToTop/BackToTop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const BackToTop =() => {
1616

1717
document.getElementById("root")?.addEventListener('scroll', (e) => {
1818
if (e.target === null) {return}
19-
let CurrentScrollHeight = e.target.scrollTop
19+
let CurrentScrollHeight = (e.target as HTMLElement).scrollTop
2020
let WindowHeight = window.innerHeight
2121

2222
if ( CurrentScrollHeight > WindowHeight / 2) {

0 commit comments

Comments
 (0)