diff --git a/source/engine/mecanismViews/Barème.tsx b/source/engine/mecanismViews/Barème.tsx index 73b78630c..c97316422 100644 --- a/source/engine/mecanismViews/Barème.tsx +++ b/source/engine/mecanismViews/Barème.tsx @@ -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 ( diff --git a/source/engine/mecanisms/grille.ts b/source/engine/mecanisms/grille.ts index e62f77546..1fd819fdd 100644 --- a/source/engine/mecanisms/grille.ts +++ b/source/engine/mecanisms/grille.ts @@ -73,9 +73,11 @@ const evaluate = ( return { ...node, - tranches, - assiette, - multiplicateur, + explanation: { + tranches, + assiette, + multiplicateur + }, missingVariables, nodeValue, unit: activeTranches[0]?.unit ?? node.unit