Skip to content

Commit

Permalink
unrelated: resolve eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl committed Nov 23, 2024
1 parent 3648b50 commit 362989f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Profile/ProfileForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export const ProfileForm: FC = () => {
parent_phone: profile?.parent_phone ?? '',
new_school_description: '',
without_school: profile?.school_id === 1,
school: ({id: profile?.school.code, label: profile?.school.verbose_name} as SelectOption) ?? null,
school: profile ? ({id: profile.school.code, label: profile.school.verbose_name} as SelectOption) : null,
school_not_found: profile?.school_id === 0,
grade: ({id: profile?.grade, label: profile?.grade_name} as SelectOption) ?? null,
grade: profile ? ({id: profile.grade, label: profile.grade_name} as SelectOption) : null,
}

const {handleSubmit, control, watch, setValue} = useForm<ProfileFormValues>({
Expand Down

0 comments on commit 362989f

Please sign in to comment.