diff --git a/site/source/components/simulationExplanation/SalaryExplanation.tsx b/site/source/components/simulationExplanation/SalaryExplanation.tsx index 1810f618a..648fe8069 100644 --- a/site/source/components/simulationExplanation/SalaryExplanation.tsx +++ b/site/source/components/simulationExplanation/SalaryExplanation.tsx @@ -12,6 +12,7 @@ import { Container, Grid, Spacing } from '@/design-system/layout' import { H2 } from '@/design-system/typography/heading' import { Link } from '@/design-system/typography/link' import { SmallBody } from '@/design-system/typography/paragraphs' +import { CurrentSimulatorDataContext } from '@/pages/Simulateurs/metadata' export default function SalaryExplanation() { const payslipRef = useRef(null) @@ -107,6 +108,7 @@ export default function SalaryExplanation() { function RevenueRepartitionSection(props: { onSeePayslip: () => void }) { const { t } = useTranslation() const { colors } = useContext(ThemeContext) + const currentSimulatorData = useContext(CurrentSimulatorDataContext) return (
@@ -142,7 +144,10 @@ function RevenueRepartitionSection(props: { onSeePayslip: () => void }) { color: colors.bases.secondary[500], }, { - dottedName: 'salarié . cotisations', + dottedName: + currentSimulatorData?.pathId === 'simulateurs.sasu' + ? 'dirigeant . assimilé salarié . cotisations' + : 'salarié . cotisations', color: colors.bases.secondary[300], }, ]}