diff --git a/packages/hoppscotch-sh-admin/src/pages/users/_id.vue b/packages/hoppscotch-sh-admin/src/pages/users/_id.vue index b7e04e1c8..05b22059d 100644 --- a/packages/hoppscotch-sh-admin/src/pages/users/_id.vue +++ b/packages/hoppscotch-sh-admin/src/pages/users/_id.vue @@ -207,6 +207,7 @@ const deleteUserMutation = async (id: string | null) => { if (result.error) { toast.error(t('state.delete_user_failure')); + router.push('/users'); } else { const deletedUsers = result.data?.removeUsersByAdmin || []; @@ -214,6 +215,5 @@ const deleteUserMutation = async (id: string | null) => { } confirmDeletion.value = false; deleteUserUID.value = null; - router.push('/users'); };