Fix log
parent
2ff1acdaff
commit
b85746de52
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
) : (
|
||||
|
|
Loading…
Reference in New Issue