🐛 Evite un clic inutile au changement d'exemple

pull/209/head
Laurent Bossavit 2018-04-27 10:22:26 +02:00
parent d585846c2d
commit b55b8ceef6
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ export default class Examples extends Component {
selected: currentExample && currentExample.name == nom
})}
onClick={() =>
currentExample
currentExample && currentExample.name == nom
? setExample(null)
: setExample(nom, situation)
}>