Skip to content

Commit

Permalink
Delete localstorage user data after we delete the account
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Dec 12, 2023
1 parent 4f12301 commit 54e687c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/SettingsAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ const call = inject('call');
const refresh = inject('refresh');
const router = useRouter();
const user = useUserStore();
const logout = inject('logout');
const externalConnections = ref({});
const hasZoomAccountConnected = computed(() => (externalConnections.value?.zoom?.length ?? []) > 0);
Expand Down Expand Up @@ -326,6 +325,8 @@ const actuallyDeleteAccount = async () => {
return;
}
// We can't logout since we've deleted the user by now, so just delete local storage data.
await user.reset();
await router.push('/');
};
Expand Down

0 comments on commit 54e687c

Please sign in to comment.