Skip to content

Commit

Permalink
Merge pull request #1352 from opencollective/fix/1643-select-created-org
Browse files Browse the repository at this point in the history
ContributionFlow: Properly create organization
  • Loading branch information
Betree authored Feb 4, 2019
2 parents 50c3b57 + eabe9a2 commit 3b1c042
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/createOrderNewFlow.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ class CreateOrderPage extends React.Component {
};

// check if we're creating a new organization
if (!currentStep && stepProfile && stepProfile.name && stepProfile.website && !stepProfile.id) {
if (!currentStep && stepProfile && stepProfile.name && !stepProfile.id) {
this.setState({ error: null, submitting: true });

try {
Expand All @@ -563,6 +563,8 @@ class CreateOrderPage extends React.Component {
this.setState({ stepProfile: createdOrg, submitting: false });
} catch (error) {
this.setState({ error: error.message, submitting: false });
window.scrollTo(0, 0);
return false;
}
} else if (currentStep === 'details' && step === 'payment') {
// Validate ContributeDetails step before going next
Expand Down

0 comments on commit 3b1c042

Please sign in to comment.