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: account deletion

Blue Mousefe0733f91ee1
diff --git a/web/app/pages/Onboarding/Onboarding.tsx b/web/app/pages/Onboarding/Onboarding.tsx
index 5b5ab638a..3a05d3617 100644
--- a/web/app/pages/Onboarding/Onboarding.tsx
+++ b/web/app/pages/Onboarding/Onboarding.tsx
@@ -472,9 +472,6 @@ const Onboarding = () => {
} else if (intent === 'complete-onboarding') {
loadUser()
navigate(routes.dashboard)
- } else if (intent === 'delete-account') {
- logout()
- navigate(routes.main)
} else if (intent === 'confirm-email') {
setCookie(CONFIRMATION_TIMEOUT, true, 600)
setHasResentEmail(true)
diff --git a/web/app/routes/onboarding.tsx b/web/app/routes/onboarding.tsx
index b19de16b2..2e148ef39 100644
--- a/web/app/routes/onboarding.tsx
+++ b/web/app/routes/onboarding.tsx
@@ -246,10 +246,7 @@ export async function action({ request }: ActionFunctionArgs) {
)
}
- return data<OnboardingActionData>(
- { intent, success: true },
- { headers: createHeadersWithCookies(result.cookies) },
- )
+ return redirect('/logout')
}
case 'confirm-email': {