🐛 🎨 corrige l'affichage de la grille
parent
d3f4f0e6c4
commit
b8697e341f
|
@ -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">
|
||||
|
|
|
@ -73,9 +73,11 @@ const evaluate = (
|
|||
|
||||
return {
|
||||
...node,
|
||||
tranches,
|
||||
assiette,
|
||||
multiplicateur,
|
||||
explanation: {
|
||||
tranches,
|
||||
assiette,
|
||||
multiplicateur
|
||||
},
|
||||
missingVariables,
|
||||
nodeValue,
|
||||
unit: activeTranches[0]?.unit ?? node.unit
|
||||
|
|
Loading…
Reference in New Issue