🎨 Récupération de l'ancien style des réponses booléennes sur /regle

pull/97/head
mama 2017-10-13 18:12:43 +02:00
parent 463b1df05f
commit 145aafbb7b
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,9 @@ import {encodeRuleName} from './rules'
let treatValue = data =>
data == null
? '?'
: !isNaN(data) ? Math.round(+data*100)/100 : data
: typeof data == 'boolean'
? {true: 'oui', false: 'non'}[data]
: !isNaN(data) ? Math.round(+data*100)/100 : data
let NodeValue = ({data}) => (
<span className={'situationValue ' + treatValue(data)}>