Skip to content

Commit

Permalink
fixed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Oct 28, 2016
1 parent 4722fd6 commit 67b017d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ColorPickerRenderer = React.createClass({
onChangeColor() {
if ( this.state.color) {
let opacity = (this.state.color.rgb.a !== 1) ? this.state.color.rgb.a : undefined;
let color = this.state.color.hex.indexOf("#") === 0 ? this.state.color.hex : "#" + this.state.color.hex;
let color = this.state.color.hex.indexOf("#") === 0 ? this.state.color.hex : "#" + this.state.color.hex;
this.props.onChangeColor( this.props.params.node, {color: color, opacity: opacity});
}
},
Expand Down

0 comments on commit 67b017d

Please sign in to comment.