diff --git a/FrontEndReact/src/View/Admin/Add/AddUsers/AdminAddUser.js b/FrontEndReact/src/View/Admin/Add/AddUsers/AdminAddUser.js index 85db27480..eb7e009d4 100644 --- a/FrontEndReact/src/View/Admin/Add/AddUsers/AdminAddUser.js +++ b/FrontEndReact/src/View/Admin/Add/AddUsers/AdminAddUser.js @@ -208,10 +208,10 @@ class AdminAddUser extends Component { promise = genericResourcePOST(`/user`, this, body); } else if (user !== null && addUser === false && navbar.props.isSuperAdmin) { - genericResourcePUT(`/user?uid=${user["user_id"]}`, this, body); + promise = genericResourcePUT(`/user?uid=${user["user_id"]}`, this, body); } else { - genericResourcePUT(`/user?uid=${user["user_id"]}&course_id=${chosenCourse["course_id"]}`, this, body); + promise = genericResourcePUT(`/user?uid=${user["user_id"]}&course_id=${chosenCourse["course_id"]}`, this, body); } promise.then(result => {