Skip to content

Commit

Permalink
fix: age non taken demographic and encouter form - Ref gestion-de-pro…
Browse files Browse the repository at this point in the history
…jet#2716
  • Loading branch information
Mehdi-BOUYAHIA committed Sep 24, 2024
1 parent 3db18d6 commit 9a4f2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/Inputs/DurationRange/DurationInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const DurationInput = ({ value, label, deidentified = false, disabled = false, o
}}
size="small"
onChange={(e) => {
if (!isNaN(+e.target.value) && +e.target.value <= 130) {
if (!isNaN(+e.target.value)) {
setDuration({
...duration,
year: e.target.value !== '' ? Math.floor(Math.abs(+e.target.value)) : 0
Expand Down

0 comments on commit 9a4f2b5

Please sign in to comment.