Created
January 23, 2019 11:18
-
-
Save ondrek/ee9ae5ac85e549878013b8cd11853f8c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class extends Component { | |
componentDidMount() { | |
const { router, params } = this.props | |
getSummary().then(({ artifacts }) => { | |
if (artifacts.length < 1) return router.push("/") | |
}) | |
if (getOrderSecret() && !params.secretId) { | |
return router.push(`/order/details/${getOrderSecret()}`) | |
} | |
if (getOrderSecret() && params.secretId) { | |
getOrderDetails({ secretId: params.secretId }).then(res => this.setState({ res })) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment