Refactored remaining requests
This commit is contained in:
1 parent
f78e5ca94c
commit
92877e20ec
10 files changed
+174
-66
No files matched your search
@@ -176,13 +176,10 @@ const TeamPanel = () => {
|
||||
setErrors((prev) => ({ ...prev, email: error.details[0].message }));
|
||||
} else
|
||||
try {
|
||||
await axiosInstance.post(
|
||||
"/auth/invite",
|
||||
{
|
||||
email: toInvite.email,
|
||||
role: toInvite.role,
|
||||
},
|
||||
{ headers: { Authorization: `Bearer ${authToken}` } }
|
||||
await axiosInstance.requestInvitationToken(
|
||||
authToken,
|
||||
toInvite.email,
|
||||
toInvite.role
|
||||
);
|
||||
|
||||
closeInviteModal();
|
||||
|
||||
Reference in new issue
Block a user