From 3e6fd277f164357f89fac75a4f0071bec05a0aec Mon Sep 17 00:00:00 2001 From: Sebastian Pravda Date: Sun, 5 Feb 2023 15:34:02 +0100 Subject: [PATCH] refactor: SchoolJson type --- .../routes/(candidate)/(authenticated)/register/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte index 3e7e72a..53eb0a4 100644 --- a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte +++ b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte @@ -18,7 +18,7 @@ import parsePhoneNumber from 'libphonenumber-js'; import { createForm } from 'svelte-forms-lib'; import * as yup from 'yup'; - import type { CandidateData } from '$lib/stores/candidate'; + import type { CandidateData, SchoolJson } 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/SchoolSelect.svelte'; @@ -37,7 +37,7 @@ import countriesList from '$lib/assets/list/countries.json'; // const schoolList = highSchoolList.map((school) => school['n']); - const schoolNames = schoolList.map((school) => school['n']); + const schoolNames = schoolList.map((school: SchoolJson) => school['n']); let pageIndex = 0; let pagesFilled = [false, false, false, false, false, false, false, false];