fix: invite form opening state

This commit is contained in:
Piyush Gupta
2025-11-25 21:00:24 +05:30
parent 0d62ef6fb5
commit b6231b56ad

View File

@@ -159,7 +159,9 @@ 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.
// A [completeInviteLink] will not be sent if smtp is configured