diff --git a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte index 31c8c75..2f88152 100644 --- a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte +++ b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte @@ -23,9 +23,9 @@ import type { CandidateData } from '$lib/stores/candidate'; import AccountLinkCheckBox from '$lib/components/checkbox/AccountLinkCheckBox.svelte'; import GradesTable from '$lib/components/grades/GradesTable.svelte'; - import SchoolSelect from '$lib/components/select/SchoolSelect.svelte'; + import SchoolSelect from '$lib/components/select/SchoolSelect/SchoolSelect.svelte'; import PersonalIdConfirmCheckBox from '$lib/components/checkbox/PersonalIdConfirmCheckBox.svelte'; - import { deriveBirthdateFromPersonalId, isPersonalIdNumberWithBirthdateValid } from '$lib/utils/personalIdFormat'; + import { isPersonalIdNumberWithBirthdateValid } from '$lib/utils/personalIdFormat'; let pageIndex = 0; let pagesFilled = [false, false, false, false, false, false, false, false]; @@ -72,9 +72,9 @@ schoolName: '', healthInsurance: '', grades: [], - firstSchool: {name: '', field: ''}, - secondSchool: {name: '', field: ''}, - testLanguage: '', + firstSchool: { name: '', field: '' }, + secondSchool: { name: '', field: '' }, + testLanguage: '' }, parents: [ { @@ -350,9 +350,11 @@ break; case 7: // @ts-ignore - if ($typedErrors["candidate"]["firstSchool"].name || $typedErrors["candidate"]["firstSchool"].field || - // @ts-ignore - $typedErrors["candidate"]["secondSchool"].name || $typedErrors["candidate"]["secondSchool"].field + if ( + $typedErrors['candidate']['firstSchool']['name'] || + $typedErrors['candidate']['firstSchool']['field'] || + $typedErrors['candidate']['secondSchool']['name'] || + $typedErrors['candidate']['secondSchool']['field'] ) { return true; } @@ -472,7 +474,6 @@

{pageTexts[1]}

{$LL.candidate.register.third.description()} - {$LL.candidate.register.third.description()}