This commit is contained in:
Chris Blanchard 2015-10-01 15:03:48 +01:00
parent 5ad300017c
commit e5ae57d8c0

View file

@ -35,8 +35,8 @@ var Chatroom = React.createClass({
let messages = this.props.messages.map(message => {
if (message) {
return <ChatMessage message={message}
key={message.id}
user={this.props.user} />
id={message._id}
user={this.props.user} />
}
});
return (