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!

rm usused code

Blue Mouseb5a3d0748ef2
diff --git a/web/app/App.tsx b/web/app/App.tsx
index bf2b9de14..68a130020 100644
--- a/web/app/App.tsx
+++ b/web/app/App.tsx
@@ -40,9 +40,8 @@ const App = ({ ssrTheme, ssrAuthenticated }: AppProps) => {
const authenticated = isBrowser ? (loading ? !!accessToken : reduxAuthenticated) : ssrAuthenticated
const theme = isBrowser ? reduxTheme : ssrTheme
- // prettier-ignore
useEffect(() => {
- (async () => {
+ void (async () => {
if (accessToken && !reduxAuthenticated) {
try {
const { user, totalMonthlyEvents } = await authMe()
@@ -74,14 +73,6 @@ const App = ({ ssrTheme, ssrAuthenticated }: AppProps) => {
dispatch(UIActions.setGeneralStats(generalStats))
}
- // yield put(sagaActions.loadMetainfo())
-
- // const lastBlogPost: {
- // title: string
- // handle: string
- // } = yield call(getLastPost)
- // yield put(UIActions.setLastBlogPost(lastBlogPost))
-
dispatch(authActions.finishLoading())
})()
}, [reduxAuthenticated]) // eslint-disable-line