diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2d0c3a0..6132e97 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -27,8 +27,8 @@ let fileInputKey = 0; let pdfDatein = []; - let deutschNote = ''; - let matheNote = ''; + let noteDeutsch = ''; + let noteMathe = ''; let sozialverhalten = ''; let ablehnungHinweis = ''; let showAblehnungModal = false; @@ -71,8 +71,8 @@ wunsch2Id = ''; wunsch3Id = ''; motivation = ''; - deutschNote = ''; - matheNote = ''; + noteDeutsch = ''; + noteMathe = ''; sozialverhalten = ''; pdfDateien = []; fileInputKey += 1; @@ -98,16 +98,16 @@ data.append('wunsch1Id', wunsch1Id); data.append('wunsch2Id', wunsch2Id); data.append('wunsch3Id', wunsch3Id); - data.append('deutschNote', deutschNote); - data.append('matheNote', matheNote); + data.append('noteDeutsch', noteDeutsch); + data.append('noteMathe', noteMathe); data.append('sozialverhalten', sozialverhalten); for (const pdf of pdfDateien) { data.append('pdfs', pdf); } - const deutsch = parseInt(deutschNote); - const mathe = parseInt(matheNote); + const deutsch = parseInt(noteDeutsch); + const mathe = parseInt(noteMathe); if (['Gymnasium', 'Gymnasialzweig'].includes(schulart) ) { if (isNaN(deutsch) || isNaN(mathe) || deutsch > 4 && mathe > 4) { @@ -184,8 +184,8 @@