Skip to content

Commit

Permalink
Merge pull request #2567 from scott-ray-wilson/fix-unintentional-proj…
Browse files Browse the repository at this point in the history
…ect-creation

Fix: Prevent Example Project Creation on SSO Signup When Joining Org
  • Loading branch information
maidul98 authored Oct 9, 2024
2 parents 4fffac0 + c90e8ca commit 06f9a14
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 06f9a14

Please sign in to comment.