diff --git a/frontend/client/components/CreateFlow/index.tsx b/frontend/client/components/CreateFlow/index.tsx index 54647a7b..8ee05e16 100644 --- a/frontend/client/components/CreateFlow/index.tsx +++ b/frontend/client/components/CreateFlow/index.tsx @@ -127,9 +127,10 @@ class CreateFlow extends React.Component { 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 { this.historyUnlisten = this.props.history.listen(this.handlePop); } - componentDidMount() { - console.warn('TODO - implement RESET_CROWDFUND if necessary'); - } - componentWillUnmount() { if (this.historyUnlisten) { this.historyUnlisten();