Skip to content

Commit

Permalink
Fixing ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mihok committed Sep 23, 2017
1 parent 3519c2e commit a9a8161
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,18 @@ class App extends Component {
let messages = [];

// Since these are all 'new' we have to run though each and combine accordingly
for (let msg of msgs) {
for (let i = 0; i < msgs.length; i += 1) {
messages = combineLastMessage(
Object.assign({}, {
...msg,
content: [msg.content],
...msgs[i],
content: [msgs[i].content],
}),
messages
);
}

this.setState({
messages: messages,
messages,
});
};

Expand Down

0 comments on commit a9a8161

Please sign in to comment.