diff --git a/src/components/admin/user/user/InviteUserModal.vue b/src/components/admin/user/user/InviteUserModal.vue index 06f15f1..9ea6d9f 100644 --- a/src/components/admin/user/user/InviteUserModal.vue +++ b/src/components/admin/user/user/InviteUserModal.vue @@ -80,15 +80,13 @@ export default defineComponent({ this.createInvite(createInvite) .then((result) => { this.status = { status: "success" }; + setTimeout(() => { + this.closeModal(); + }, 2000); }) .catch((err) => { this.status = { status: "failed", reason: err.response.data }; }) - .finally(() => { - setTimeout(() => { - this.closeModal(); - }, 2000); - }); }, }, }); diff --git a/src/views/account/LoginData.vue b/src/views/account/LoginData.vue index 6028dad..7ba75bb 100644 --- a/src/views/account/LoginData.vue +++ b/src/views/account/LoginData.vue @@ -10,16 +10,7 @@