diff --git a/js/components/ascribe_modal/modal_share.js b/js/components/ascribe_modal/modal_share.js index 28740a43..33a9d04c 100644 --- a/js/components/ascribe_modal/modal_share.js +++ b/js/components/ascribe_modal/modal_share.js @@ -57,14 +57,9 @@ let ShareForm = React.createClass({ .then((response) => { if (response.status >= 200 && response.status < 300) return response - throw new Error(response.statusText) - }) - .then((response) => response.json()) - .catch((error) => { - this.setState({errors: error}); - console.log('request failed', error); - }); - + response.json().then((response) => this.setState({errors: response.errors})) + } + ); //.then(FetchApiUtils.status) },