From f4bbee1ecdddb897e2c44ca6deb63251797818ac Mon Sep 17 00:00:00 2001 From: Etienne Lemay Date: Mon, 1 May 2017 12:01:25 +0200 Subject: [PATCH] Do not set skin when selecting the same --- src/components/skins.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) + } } }