diff --git a/app/javascript/sidebar-widget/SidebarWidget.jsx b/app/javascript/sidebar-widget/SidebarWidget.jsx index 35dec20de..fe531bb93 100644 --- a/app/javascript/sidebar-widget/SidebarWidget.jsx +++ b/app/javascript/sidebar-widget/SidebarWidget.jsx @@ -59,7 +59,7 @@ class SidebarWidget extends Component { render() { const users = this.state.suggestedUsers.map(user => ( - )); + )); return (
{''}
diff --git a/app/javascript/src/Onboarding.jsx b/app/javascript/src/Onboarding.jsx index 501c43804..74dbba07c 100644 --- a/app/javascript/src/Onboarding.jsx +++ b/app/javascript/src/Onboarding.jsx @@ -181,7 +181,8 @@ class Onboarding extends Component { body: formData, credentials: 'same-origin', }) - .then(response => response.json().then(json => { + .then(response => + response.json().then(json => { this.setState({ allTags: this.state.allTags.map(currentTag => { const newTag = currentTag; @@ -192,7 +193,8 @@ class Onboarding extends Component { // add in optimistic rendering }), }); - })) + }), + ) .catch(error => { console.log(error); }); diff --git a/app/javascript/src/utils/sendFollowUser.js b/app/javascript/src/utils/sendFollowUser.js index 5350dd0b1..12eff095b 100644 --- a/app/javascript/src/utils/sendFollowUser.js +++ b/app/javascript/src/utils/sendFollowUser.js @@ -16,7 +16,7 @@ export default function sendFollowUser(user, successCb, failureCb) { }) .then(response => response.json()) .then(json => { - console.log(`in fetch request: ${ json.outcome}`); + console.log(`in fetch request: ${json.outcome}`); successCb(json.outcome); // json is followed or unfollowed })