mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-23 04:52:00 +00:00
Ryssk is drunk
This commit is contained in:
parent
ee13ab9a26
commit
c0f6f80423
1 changed files with 5 additions and 5 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue