Ryssk is drunk

This commit is contained in:
Chris Blanchard 2015-09-20 00:11:43 +01:00
parent ee13ab9a26
commit c0f6f80423

View file

@ -140,17 +140,17 @@ var ProfileModal = React.createClass({
);
}
let division = this.props.user.profile.skill;
let skillLevels = ["Low Skill", "Medium Skill", "High Skill"].map(skill => {
return <option key={skill}>{skill}</option>
});
let skillLevel = this.props.user.profile.skill;
let skillLevels = ["Low Skill", "Medium Skill", "High Skill", skillLevel]
.filter(skill => { return typeof skill === 'string' })
.map(skill => { return <option key={skill}>{skill}</option>});
return (
<form>
<div className="form-group">
<label>Player Skill</label><br />
<select
defaultValue={division}
defaultValue={skillLevel}
className="form-control"
ref="playerskill">
{skillLevels}