Fix reporting on skill

This commit is contained in:
Chris Blanchard 2015-09-15 15:13:03 +01:00
parent 26409ca692
commit c1b771d2ef

View file

@ -141,10 +141,9 @@ var ProfileModal = React.createClass({
}
let division = this.props.user.profile.skill;
let skillLevels = ["Low Skill", "Medium Skill", "High Skill"].map(skill => {
if (skill === skill) {
return <option defaultValue key={skill}>{skill}</option>
if (skill === division) {
return <option selected="selected" key={skill}>{skill}</option>
} else {
return <option key={skill}>{skill}</option>
}