0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): should not toast invitation sent message when creating tenant w/o invitee (#6270)

fix(console): should not toast invitation sent message when creating tenant without invitee
This commit is contained in:
Charles Zhao 2024-07-19 14:07:20 +08:00 committed by GitHub
parent 64b022bdea
commit 4ac4f8cdb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,6 +78,7 @@ function CreateTenant() {
tenantId: newTenant.id,
});
if (collaboratorEmails.length > 0) {
// Should not block the onboarding flow if the invitation fails.
try {
await Promise.all(
@ -92,6 +93,7 @@ function CreateTenant() {
} catch {
toast.error(t('tenants.create_modal.invitation_failed', { duration: 5 }));
}
}
navigate(joinPath(OnboardingRoute.Onboarding, newTenant.id, OnboardingPage.SignInExperience));
})
);