More prettier lint
This commit is contained in:
parent
2f0edd1149
commit
d7d76a2506
3 changed files with 6 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue