Skip to content

Commit 28a542f

Browse files
atrakhConvex, Inc.
authored and
Convex, Inc.
committed
dashboard: make sure local storage is always cleared on account deletion (#36522)
Currently local storage is cleared after deleting the account, and the page redirect on account deletion causes that to not happen. GitOrigin-RevId: b0936286df61666e5fa3e8d148bf23bf4a755b7d
1 parent 0777cf7 commit 28a542f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm-packages/dashboard/src/pages/profile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ function Profile() {
8787
onClose={() => setShowConfirmation(false)}
8888
onConfirm={async () => {
8989
try {
90-
await deleteAccount();
9190
document.cookie = "";
9291
window.localStorage.clear();
92+
await deleteAccount();
9393
} catch (e: any) {
9494
setDeleteAccountError(e.message);
9595
throw e;

0 commit comments

Comments
 (0)