🐛 🎨 corrige l'affichage de la grille

pull/894/head
Johan Girod 2020-02-21 17:01:02 +01:00
parent d3f4f0e6c4
commit b8697e341f
2 changed files with 6 additions and 6 deletions

View File

@ -90,9 +90,7 @@ export const TrancheTable = ({ tranches, multiplicateur }) => {
}
const Tranche = ({ tranche, multiplicateur }) => {
const isHighlighted =
tranche.isActive || (tranche.nodeValue != null && tranche.nodeValue)
const isHighlighted = tranche.isActive
return (
<tr className={classNames('tranche', { activated: isHighlighted })}>
<td key="tranche">

View File

@ -73,9 +73,11 @@ const evaluate = (
return {
...node,
tranches,
assiette,
multiplicateur,
explanation: {
tranches,
assiette,
multiplicateur
},
missingVariables,
nodeValue,
unit: activeTranches[0]?.unit ?? node.unit