More prettier lint

This commit is contained in:
Zhao-Andy 2018-04-25 13:55:34 -04:00
parent 2f0edd1149
commit d7d76a2506
3 changed files with 6 additions and 4 deletions

View file

@ -59,7 +59,7 @@ class SidebarWidget extends Component {
render() {
const users = this.state.suggestedUsers.map(user => (
<SidebarUser key={user.id} user={user} followUser={this.followUser} />
));
));
return (
<div className="widget-suggested-follows-container">
<header>{'<WHO TO FOLLOW>'}</header>

View file

@ -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);
});

View file

@ -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
})