Skip to content

Commit 4dbcb82

Browse files
committed
refactor: remove unused comments
1 parent 8f1eae5 commit 4dbcb82

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

apps/web/src/components/StartSessionForm/StartSessionForm.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ import { z } from 'zod/v4';
1515

1616
const currentDate = new Date();
1717

18-
// const EIGHTEEN_YEARS = 568025136000; // milliseconds
19-
20-
//const MIN_DATE_OF_BIRTH = new Date(currentDate.getTime() - EIGHTEEN_YEARS);
21-
2218
type StartSessionFormData = {
2319
sessionDate: Date;
2420
sessionType: 'IN_PERSON' | 'RETROSPECTIVE';
@@ -184,17 +180,10 @@ export const StartSessionForm = ({
184180
.optional(),
185181
subjectDateOfBirth: z
186182
.date()
187-
188-
// .max(MIN_DATE_OF_BIRTH, { message: t({
189-
// en: `Subject must be above age of ${currentGroup?.settings.minimumAge}`,
190-
// fr: `Le sujet doit être âgé de plus de ${currentGroup?.settings.minimumAge}`
191-
// }) })
192183
.optional()
193184
.refine(
194185
(date) => {
195-
// If there's no date picked or no limit defined, it's valid
196186
if (!date || !MIN_DATE_OF_BIRTH) return true;
197-
// Otherwise, ensure the date is not after the maximum allowed date
198187
return date <= MIN_DATE_OF_BIRTH;
199188
},
200189
{

0 commit comments

Comments
 (0)