📈 Ajoute le suivi de 'Tout effacer'

pull/93/head
Laurent Bossavit 2017-10-13 11:47:30 +02:00
parent fbbb6d53aa
commit 3a95588d5d
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import './Simulateur.css'
import {capitalise0} from '../utils'
import Conversation from './conversation/Conversation'
import ReactPiwik from 'react-piwik';
let situationSelector = formValueSelector('conversation')
@ -62,6 +63,7 @@ export default class extends React.Component {
sim = path =>
R.path(R.unless(R.is(Array), R.of)(path))(this.rule.simulateur || {}),
reinitalise = () => {
ReactPiwik.push(['trackEvent', 'restart', '']);
this.props.resetForm(this.name)
this.props.startConversation(this.name)
},