diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/create/organization/AutoPersonalOrganizationBind.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/create/organization/AutoPersonalOrganizationBind.tsx | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/organization/AutoPersonalOrganizationBind.tsx b/server/sonar-web/src/main/js/apps/create/organization/AutoPersonalOrganizationBind.tsx index 47a65c594d6..5524c1fc19a 100644 --- a/server/sonar-web/src/main/js/apps/create/organization/AutoPersonalOrganizationBind.tsx +++ b/server/sonar-web/src/main/js/apps/create/organization/AutoPersonalOrganizationBind.tsx @@ -45,20 +45,16 @@ interface Props { export default class AutoPersonalOrganizationBind extends React.PureComponent<Props> { handleCreateOrganization = (organization: Required<OrganizationBase>) => { - if (organization) { - return this.props - .updateOrganization({ - avatar: organization.avatar, - description: organization.description, - installationId: this.props.almInstallId, - key: this.props.importPersonalOrg.key, - name: organization.name || organization.key, - url: organization.url - }) - .then(({ key }) => this.props.onOrgCreated(key)); - } else { - return Promise.reject(); - } + return this.props + .updateOrganization({ + avatar: organization.avatar, + description: organization.description, + installationId: this.props.almInstallId, + key: this.props.importPersonalOrg.key, + name: organization.name || organization.key, + url: organization.url + }) + .then(({ key }) => this.props.onOrgCreated(key)); }; render() { @@ -69,7 +65,7 @@ export default class AutoPersonalOrganizationBind extends React.PureComponent<Pr onOpen={() => {}} open={true} organization={importPersonalOrg}> - <p className="huge-spacer-bottom"> + <div className="huge-spacer-bottom"> <FormattedMessage defaultMessage={translate('onboarding.import_personal_organization_x')} id="onboarding.import_personal_organization_x" @@ -89,7 +85,7 @@ export default class AutoPersonalOrganizationBind extends React.PureComponent<Pr personalName: importPersonalOrg && <strong>{importPersonalOrg.name}</strong> }} /> - </p> + </div> <OrganizationDetailsForm keyReadOnly={true} onContinue={this.handleCreateOrganization} |