mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 17:27:16 +00:00
Merge pull request #4940 from Infisical/fix/invite-form-opening-state
[ENG-4173] fix: invite form opening state
This commit is contained in:
+5
-3
@@ -159,14 +159,16 @@ export const AddOrgMemberModal = ({
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
setCompleteInviteLinks(data?.completeInviteLinks ?? null);
|
if (data?.completeInviteLinks && data?.completeInviteLinks.length > 0) {
|
||||||
|
setCompleteInviteLinks(data.completeInviteLinks);
|
||||||
|
}
|
||||||
|
|
||||||
// only show this notification when email is configured.
|
// only show this notification when email is configured.
|
||||||
// A [completeInviteLink] will not be sent if smtp is configured
|
// A [completeInviteLink] will not be sent if smtp is configured
|
||||||
|
|
||||||
if (!data.completeInviteLinks) {
|
if (!data.completeInviteLinks?.length) {
|
||||||
createNotification({
|
createNotification({
|
||||||
text: "Successfully invited user to the organization.",
|
text: `Successfully invited user${usernames.length > 1 ? "s" : ""} to the organization.`,
|
||||||
type: "success"
|
type: "success"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user