Merge branch 'develop' into gdpr-and-cookies

This commit is contained in:
Daniel Ternyak 2019-02-05 09:35:31 -06:00 committed by GitHub
commit fe0cb6c220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -127,9 +127,10 @@ class CreateFlow extends React.Component<Props, State> {
constructor(props: Props) {
super(props);
const searchValues = qs.parse(props.location.search);
const queryStep = searchValues.step ? searchValues.step.toUpperCase() : null;
const step =
searchValues.step && CREATE_STEP[searchValues.step]
? (CREATE_STEP[searchValues.step] as CREATE_STEP)
queryStep && CREATE_STEP[queryStep]
? (CREATE_STEP[queryStep] as CREATE_STEP)
: CREATE_STEP.BASICS;
this.state = {
step,
@ -142,10 +143,6 @@ class CreateFlow extends React.Component<Props, State> {
this.historyUnlisten = this.props.history.listen(this.handlePop);
}
componentDidMount() {
console.warn('TODO - implement RESET_CROWDFUND if necessary');
}
componentWillUnmount() {
if (this.historyUnlisten) {
this.historyUnlisten();