diff --git a/src/components/UserProfileComponents/UserProfile.vue b/src/components/UserProfileComponents/UserProfile.vue index 09064ae058a955f8d463c925ca84642d0e8e4aad..6d401940bc4c7f395afe6b7878ff21d9c8cdadec 100644 --- a/src/components/UserProfileComponents/UserProfile.vue +++ b/src/components/UserProfileComponents/UserProfile.vue @@ -171,8 +171,8 @@ export default { this.show = !this.show; }, async deleteUser(){ - const deleteResponse = await UserService.deleteUser(); - alert(deleteResponse.data); + await UserService.deleteUser(); + this.$store.commit("logout"); }, }, beforeMount() {