mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-23 12:52:15 +00:00
Dedup skill levels
This commit is contained in:
parent
f3cb00b802
commit
4cc80c48a6
2 changed files with 1 additions and 2 deletions
|
@ -23,7 +23,6 @@ var Chatroom = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
console.log(this.props.messages);
|
|
||||||
let messages = this.props.messages.map(message =>
|
let messages = this.props.messages.map(message =>
|
||||||
<ChatMessage message={message}
|
<ChatMessage message={message}
|
||||||
key={message.id}
|
key={message.id}
|
||||||
|
|
|
@ -140,7 +140,7 @@ var ProfileModal = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
let skillLevel = this.props.user.profile.skill;
|
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' })
|
.filter(skill => { return typeof skill === 'string' })
|
||||||
.map(skill => { return <option key={skill}>{skill}</option>});
|
.map(skill => { return <option key={skill}>{skill}</option>});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue