diff --git a/site/source/pages/gerer/declaration-revenu-independants/_components/hooks.ts b/site/source/pages/gerer/declaration-revenu-independants/_components/hooks.ts index 57543582f..b9c02d056 100644 --- a/site/source/pages/gerer/declaration-revenu-independants/_components/hooks.ts +++ b/site/source/pages/gerer/declaration-revenu-independants/_components/hooks.ts @@ -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 } diff --git a/site/source/pages/gerer/declaration-revenu-independants/declaration.tsx b/site/source/pages/gerer/declaration-revenu-independants/declaration.tsx index 3c8557a77..607acd6d9 100644 --- a/site/source/pages/gerer/declaration-revenu-independants/declaration.tsx +++ b/site/source/pages/gerer/declaration-revenu-independants/declaration.tsx @@ -411,12 +411,10 @@ function ResultSection() { getMeta(rule.rawNode, {})?.section === 'oui' ? ( {rule.dottedName.split(' . ').length === 2 ? ( - <> - - + ) : rule.dottedName.split(' . ').length === 3 ? (

{rule.title}

) : (