Dedup skill levels

This commit is contained in:
Chris Blanchard 2015-10-01 14:12:27 +01:00
parent f3cb00b802
commit 4cc80c48a6
2 changed files with 1 additions and 2 deletions

View file

@ -23,7 +23,6 @@ var Chatroom = React.createClass({
},
render() {
console.log(this.props.messages);
let messages = this.props.messages.map(message =>
<ChatMessage message={message}
key={message.id}

View file

@ -140,7 +140,7 @@ var ProfileModal = React.createClass({
}
let skillLevel = this.props.user.profile.skill;
let skillLevels = ["Low Skill", "Medium Skill", "High Skill", skillLevel]
let skillLevels = _.uniq(["Low Skill", "Medium Skill", "High Skill", skillLevel])
.filter(skill => { return typeof skill === 'string' })
.map(skill => { return <option key={skill}>{skill}</option>});