diff --git a/source/engine/mecanisms.js b/source/engine/mecanisms.js index 69cf8bdf7..699a80b79 100644 --- a/source/engine/mecanisms.js +++ b/source/engine/mecanisms.js @@ -716,6 +716,7 @@ export let mecanismLinearScale = (recurse, k, v) => { ({ de: min, à: max }) => roundedAssiette >= min && roundedAssiette <= max ) + if (!matchedTranche) return 0 return matchedTranche.taux.nodeValue * val(assiette) }