Remove excess closure

pull/3573/head
Alex P 2018-06-05 14:14:31 -07:00
parent 9ac2ef09f0
commit 46a2978483
1 changed files with 2 additions and 2 deletions

View File

@ -72,12 +72,12 @@ class GaugeOptions extends Component {
onResetFocus()
}
handleChooseColor = threshold => chosenColor => {
handleChooseColor = threshold => {
const {handleUpdateGaugeColors} = this.props
const gaugeColors = this.props.gaugeColors.map(
color =>
color.id === threshold.id
? {...color, hex: chosenColor.hex, name: chosenColor.name}
? {...color, hex: threshold.hex, name: threshold.name}
: color
)