From f12b19a90f9a6e611e3f78c40a7e0050b4282a67 Mon Sep 17 00:00:00 2001 From: Chris Blanchard Date: Tue, 15 Sep 2015 17:11:52 +0100 Subject: [PATCH] Use defaultValue --- lib/react/user.jsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/react/user.jsx b/lib/react/user.jsx index 1e3ea32..7344be6 100644 --- a/lib/react/user.jsx +++ b/lib/react/user.jsx @@ -142,18 +142,17 @@ var ProfileModal = React.createClass({ let division = this.props.user.profile.skill; let skillLevels = ["Low Skill", "Medium Skill", "High Skill"].map(skill => { - if (skill === division) { - return - } else { - return - } + return }); return (

- {skillLevels}

Try to give an accurate representation of your skill to raise the quality of your gathers