mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 11:12:16 +01:00
improve error handling for 401 requests and fetch
This commit is contained in:
@@ -24,15 +24,16 @@ async function invitePlaceholder(id: string) {
|
||||
const organizationId = getCurrentOrganizationId();
|
||||
if (organizationId) {
|
||||
await handleApiRequestNotifications(
|
||||
api.invitePlaceholder(
|
||||
{},
|
||||
{
|
||||
params: {
|
||||
organization: organizationId,
|
||||
member: id,
|
||||
},
|
||||
}
|
||||
),
|
||||
() =>
|
||||
api.invitePlaceholder(
|
||||
{},
|
||||
{
|
||||
params: {
|
||||
organization: organizationId,
|
||||
member: id,
|
||||
},
|
||||
}
|
||||
),
|
||||
'Member invited successfully',
|
||||
'Error inviting member'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user