pull/2092/head
Jérémy Rialland 2022-04-07 11:13:56 +02:00 committed by Johan Girod
parent 2ff1acdaff
commit b85746de52
2 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import { DottedName } from '@/../../modele-social'
import { DottedName } from 'modele-social'
import { useEngine } from '@/components/utils/EngineContext'
import { isEmpty } from 'ramda'
@ -14,7 +14,7 @@ export function useProgress(objectifs: DottedName[]): number {
const objectifsRemplis = objectifsApplicables.filter((objectif) =>
isEmpty(objectif.missingVariables)
)
console.log(objectifsRemplis, objectifsApplicables)
if (!objectifsApplicables.length) {
return 0
}

View File

@ -411,12 +411,10 @@ function ResultSection() {
getMeta<Meta>(rule.rawNode, {})?.section === 'oui' ? (
<Grid item xs={12} key={dottedName}>
{rule.dottedName.split(' . ').length === 2 ? (
<>
<RuleInputWithTitle
title={rule.rawNode.question}
dottedName={dottedName as DottedName}
/>
</>
<RuleInputWithTitle
title={rule.rawNode.question}
dottedName={dottedName as DottedName}
/>
) : rule.dottedName.split(' . ').length === 3 ? (
<H3>{rule.title}</H3>
) : (