Plus de 'undefined' dans les titres des bulles d'aide

pull/108/head
mama 2017-10-19 12:38:15 +02:00
parent af783a6da4
commit 5763a794ab
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import {EXPLAIN_VARIABLE} from '../actions'
import References from './rule/References'
import './Aide.css'
import {capitalise0} from '../utils'
@connect(
state =>
@ -39,7 +40,7 @@ export default class Aide extends Component {
className="fa fa-times-circle"
onClick={stopExplaining} ></i>
<p
dangerouslySetInnerHTML={{__html: this.renderExplanationMarkdown(text, rule.titre)}}>
dangerouslySetInnerHTML={{__html: this.renderExplanationMarkdown(text, rule.titre || capitalise0(rule.name))}}>
</p>
{/* { possibilities &&
<p>