Skip to content

Commit 022e0c0

Browse files
committed
feat: replace use of undefined with optional param ?
1 parent ba135e5 commit 022e0c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/api/src/sessions/dto/create-session.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export class CreateSessionDto {
99
groupId: null | string;
1010
subjectData: CreateSubjectData;
1111
type: SessionType;
12-
userId: null | string | undefined;
12+
userId?: null | string;
1313
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type StartSessionFormProps = {
3535
initialValues?: FormTypes.PartialNullableData<StartSessionFormData>;
3636
onSubmit: (data: CreateSessionData) => Promisable<void>;
3737
readOnly: boolean;
38-
username: string | undefined;
38+
username?: null | string;
3939
};
4040

4141
export const StartSessionForm = ({

0 commit comments

Comments
 (0)