Skip to content

Commit

Permalink
Add extra promise sets that were missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jcallison1 committed Nov 18, 2024
1 parent 0930d17 commit f435a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FrontEndReact/src/View/Admin/Add/AddUsers/AdminAddUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit f435a8d

Please sign in to comment.