From f435a8d1c5bb9b46f907575440557e52e92d182d Mon Sep 17 00:00:00 2001 From: jcallison1 <152124968+jcallison1@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:56:24 -0600 Subject: [PATCH] Add extra promise sets that were missing --- FrontEndReact/src/View/Admin/Add/AddUsers/AdminAddUser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => {