Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move ccp connection to cc link #4616

Closed
wants to merge 7 commits into from
Closed

move ccp connection to cc link #4616

wants to merge 7 commits into from

Conversation

sunguroku
Copy link
Contributor

POR-

What does this PR do?

@sunguroku sunguroku requested a review from MauAraujo May 7, 2024 18:30
setErrorMessage(err.message);
setLoading(false);
})
}
}

onCreate();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling onCreate here also causes the modal to close even when there are errors, I would just wrap everything into a try catch block and only call OnCreate and setLoading(false) after the api calls have completed


// create cluster on first payment setup for sandbox
if (currentProject?.sandbox_enabled) {
await api.connectProjectToCluster(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a user adds another payment method, this will create another cluster connection right? Should we limit to one credit card?

{ project_id: currentProject.id }
)
})
.catch((err: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The payment method will be added to Stripe even if this call fails, is there another way to create the cluster if that happens?

@sunguroku sunguroku closed this May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants