Do not set skin when selecting the same

release
Etienne Lemay 2017-05-01 12:01:25 +02:00
parent 81ccfbca03
commit f4bbee1ecd
1 changed files with 3 additions and 1 deletions

View File

@ -16,8 +16,10 @@ export default class Skins extends React.Component {
if (!this.state.opened) {
this.setState({ opened: true })
} else {
onChange(skin)
this.setState({ opened: false })
if (skin != this.props.skin) {
onChange(skin)
}
}
}