+}) {
return (
{aides.map((aide, i) => (
@@ -283,11 +289,11 @@ function ResultCard({
situation,
title,
dottedName,
+ engine,
dateFin,
versement,
description,
-}: AideDescriptor) {
- const engine = useEngine()
+}: AideDescriptor & { engine: Engine }) {
const rule = engine.getParsedRules()[dottedName]
const valueNode = (rule.explanation.valeur as any)?.explanation.valeur
const evaluation = engine.evaluate(valueNode)