fix: prevent example project from being created when joining existing org SSO

This commit is contained in:
Scott Wilson
2024-10-09 13:58:22 -07:00
parent b482a9cda7
commit 6ddc4ce4b1
2 changed files with 10 additions and 6 deletions
@@ -176,12 +176,16 @@ export const UserInfoSSOStep = ({
organizationId: orgId
});
const project = await ProjectService.initProject({
projectName: "Example Project"
});
// only create example project if not joining existing org
if (!providerOrganizationName) {
const project = await ProjectService.initProject({
projectName: "Example Project"
});
localStorage.setItem("projectData.id", project.id);
}
localStorage.setItem("orgData.id", orgId);
localStorage.setItem("projectData.id", project.id);
setStep(2);
} catch (error) {