-
Notifications
You must be signed in to change notification settings - Fork 239
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
Conversation
setErrorMessage(err.message); | ||
setLoading(false); | ||
}) | ||
} | ||
} | ||
|
||
onCreate(); |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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?
POR-
What does this PR do?