diff --git a/src/components/skins.js b/src/components/skins.js index d1261f3..6a2e4eb 100644 --- a/src/components/skins.js +++ b/src/components/skins.js @@ -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) + } } }