diff --git a/src/components/views/dialogs/HostingSignupDialog.tsx b/src/components/views/dialogs/HostingSignupDialog.tsx index f85955e876..3f8c57abb5 100644 --- a/src/components/views/dialogs/HostingSignupDialog.tsx +++ b/src/components/views/dialogs/HostingSignupDialog.tsx @@ -25,6 +25,7 @@ interface IProps { } interface IState { + completed: boolean, error: string, } @@ -36,6 +37,7 @@ export default class HostingSignupDialog extends React.PureComponent { - if (result) { + if (result || this.state.completed) { // We're done, close this.props.requestClose(); } else { @@ -73,7 +82,6 @@ export default class HostingSignupDialog extends React.PureComponent { if (result) { - // TODO call an API endpoint to clean up? this.props.requestClose(); } },