Skip to content

Commit

Permalink
Ajoute option pour voir les valeur 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
johangirod committed Jan 6, 2024
1 parent b08921b commit 8ab6d71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})

Expand Down
6 changes: 3 additions & 3 deletions site/source/components/SelectSimulationYear.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand All @@ -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>
Expand Down

0 comments on commit 8ab6d71

Please sign in to comment.