Skip to content

Commit

Permalink
Merge pull request #25 from kinde-oss/peter/bug/create_org_audience
Browse files Browse the repository at this point in the history
Fix: handle create org when audience is undefined
  • Loading branch information
DaveOrDead authored May 10, 2023
2 parents 2c2cf11 + 60404e4 commit 8f9963e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/handlers/createOrg.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ export const createOrg = async (req, res) => {
state,
start_page: start_page,
is_create_org: true,
org_name,
audience: config.audience
org_name
};

if (config.audience) {
searchParams.audience = config.audience;
}

createOrgURL.search = new URLSearchParams(searchParams);

res.redirect(createOrgURL.href);
Expand Down

0 comments on commit 8f9963e

Please sign in to comment.