Les résultats niveau 1 sont arrondis à l'entier près

pull/151/head
mama 2018-01-17 16:11:14 +01:00
parent ad8fbd6a1f
commit 4753e1f535
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import React from 'react'
import { Link } from 'react-router-dom'
import { encodeRuleName } from 'Engine/rules'
import classNames from 'classnames'
import { capitalise0 } from '../../utils'
let fmt = new Intl.NumberFormat('fr-FR').format
export let humanFigure = decimalDigits => value =>
fmt(value.toFixed(decimalDigits))
@ -45,7 +44,7 @@ let RuleValue = ({ unsatisfied, irrelevant, conversationStarted, ruleValue }) =>
? ['irrelevant', "Vous n'êtes pas concerné"]
: unsatisfied
? ['unsatisfied', 'En attente de vos réponses...']
: ['figure', humanFigure(2)(ruleValue) + ' €']
: ['figure', humanFigure(0)(ruleValue) + ' €']
{
/*<p><i className="fa fa-lightbulb-o" aria-hidden="true"></i><em>Pourquoi ?</em></p> */