fix: candidate register

This commit is contained in:
Sebastian Pravda 2023-01-26 23:54:57 +01:00
parent e2c3eed4fb
commit faad621f20
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

View file

@ -23,9 +23,9 @@
import type { CandidateData } from '$lib/stores/candidate'; import type { CandidateData } from '$lib/stores/candidate';
import AccountLinkCheckBox from '$lib/components/checkbox/AccountLinkCheckBox.svelte'; import AccountLinkCheckBox from '$lib/components/checkbox/AccountLinkCheckBox.svelte';
import GradesTable from '$lib/components/grades/GradesTable.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 PersonalIdConfirmCheckBox from '$lib/components/checkbox/PersonalIdConfirmCheckBox.svelte';
import { deriveBirthdateFromPersonalId, isPersonalIdNumberWithBirthdateValid } from '$lib/utils/personalIdFormat'; import { isPersonalIdNumberWithBirthdateValid } from '$lib/utils/personalIdFormat';
let pageIndex = 0; let pageIndex = 0;
let pagesFilled = [false, false, false, false, false, false, false, false]; let pagesFilled = [false, false, false, false, false, false, false, false];
@ -72,9 +72,9 @@
schoolName: '', schoolName: '',
healthInsurance: '', healthInsurance: '',
grades: [], grades: [],
firstSchool: {name: '', field: ''}, firstSchool: { name: '', field: '' },
secondSchool: {name: '', field: ''}, secondSchool: { name: '', field: '' },
testLanguage: '', testLanguage: ''
}, },
parents: [ parents: [
{ {
@ -350,9 +350,11 @@
break; break;
case 7: case 7:
// @ts-ignore // @ts-ignore
if ($typedErrors["candidate"]["firstSchool"].name || $typedErrors["candidate"]["firstSchool"].field || if (
// @ts-ignore $typedErrors['candidate']['firstSchool']['name'] ||
$typedErrors["candidate"]["secondSchool"].name || $typedErrors["candidate"]["secondSchool"].field $typedErrors['candidate']['firstSchool']['field'] ||
$typedErrors['candidate']['secondSchool']['name'] ||
$typedErrors['candidate']['secondSchool']['field']
) { ) {
return true; return true;
} }
@ -472,7 +474,6 @@
<h1 class="title mt-8">{pageTexts[1]}</h1> <h1 class="title mt-8">{pageTexts[1]}</h1>
<p class="description mt-8 block text-center"> <p class="description mt-8 block text-center">
{$LL.candidate.register.third.description()} {$LL.candidate.register.third.description()}
{$LL.candidate.register.third.description()}
</p> </p>
<div class="w-full"> <div class="w-full">
<div class="flex flex-col"> <div class="flex flex-col">