Ajoute option pour voir les valeur 2023

pull/2862/head
Johan Girod 2024-01-06 14:51:55 +01:00
parent b08921ba59
commit 8ab6d713fd
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ describe('Simulateur salarié : part time contract', function () {
.val()
.toString()
.replace(/[\s,.€]/g, '')
expect(parseInt(val)).to.be.above(1300).and.to.be.below(1600)
expect(parseInt(val)).to.be.above(1600).and.to.be.below(1700)
})
})

View File

@ -15,7 +15,7 @@ const Bold = styled.span<{ $bold: boolean }>`
export const SelectSimulationYear = () => {
const dispatch = useDispatch()
const year = useContext(EngineContext).evaluate('date')
const choices = [2022, 2023]
const choices = [2023, 2024]
const actualYear = Number(
year.nodeValue?.toString().slice(-4) || new Date().getFullYear()
@ -27,7 +27,7 @@ export const SelectSimulationYear = () => {
<Banner hideAfterFirstStep={false} icon={'📅'}>
<Trans i18nKey="pages.simulateurs.select-year.info">
Cette simulation concerne l'année{' '}
<Bold $bold={actualYear !== 2023}>{{ actualYear }}</Bold>.{' '}
<Bold $bold={actualYear !== 2024}>{{ actualYear }}</Bold>.{' '}
</Trans>
<>
{choices
@ -39,7 +39,7 @@ export const SelectSimulationYear = () => {
dispatch(updateSituation('date', `01/01/${year}`))
}
>
{actualYear === 2023 ? (
{actualYear === 2024 ? (
<Trans i18nKey="pages.simulateurs.select-year.access">
Accéder au simulateur {{ year }}
</Trans>