From 0d013366de3450965ee5277ac2d46c5b42ba24e3 Mon Sep 17 00:00:00 2001 From: EETagent Date: Thu, 26 Jan 2023 21:19:17 +0100 Subject: [PATCH] fix: typescript errors --- .../(authenticated)/register/+page.svelte | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte index ca1f05f..94b6878 100644 --- a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte +++ b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte @@ -346,13 +346,16 @@ } break; case 7: - // @ts-ignore if ( - $typedErrors['candidate']['firstSchool'].name || - $typedErrors['candidate']['firstSchool'].field || + // TODO: Fix FormErrorType, make it recursive // @ts-ignore - $typedErrors['candidate']['secondSchool'].name || - $typedErrors['candidate']['secondSchool'].field + $typedErrors['candidate']['firstSchool']['name'] || + // @ts-ignore + $typedErrors['candidate']['firstSchool']['field'] || + // @ts-ignore + $typedErrors['candidate']['secondSchool']['name'] || + // @ts-ignore + $typedErrors['candidate']['secondSchool']['field'] ) { return true; } @@ -630,7 +633,7 @@ type="text" bind:value={$form.candidate.healthInsurance} placeholder={$LL.input.insuranceNumber()} - /> + /> {:else if pageIndex === 5}