Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

'fix' TS7006: Parameter 'location' implicitly has an 'any' type.

Blue Mouse415dfdfd06e2
diff --git a/src/hoc/ScrollToTop.tsx b/src/hoc/ScrollToTop.tsx
index 66ac0a95b..f7ec50130 100644
--- a/src/hoc/ScrollToTop.tsx
+++ b/src/hoc/ScrollToTop.tsx
@@ -32,7 +32,7 @@ const ScrollToTop: React.FC<IScrollToTop> = ({ children }) => {
const history = useHistory()
useEffect(() => {
- const unlisten = history.listen((location) => {
+ const unlisten = history.listen((location: any) => {
const { hash, state } = location as IHistoryListener
if (!_isEmpty(state) && state?.scrollToTopDisable) {