From 5763a794ab5ae6dc9bc9eaef238e38f7a62cf0ba Mon Sep 17 00:00:00 2001 From: mama Date: Thu, 19 Oct 2017 12:38:15 +0200 Subject: [PATCH] Plus de 'undefined' dans les titres des bulles d'aide --- source/components/Aide.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/components/Aide.js b/source/components/Aide.js index 77f1bf868..c7cd3df97 100644 --- a/source/components/Aide.js +++ b/source/components/Aide.js @@ -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} >

+ dangerouslySetInnerHTML={{__html: this.renderExplanationMarkdown(text, rule.titre || capitalise0(rule.name))}}>

{/* { possibilities &&