From 549147cfb3ef57c10323a65be4c34f2102663086 Mon Sep 17 00:00:00 2001 From: Torsten Schulz Date: Tue, 15 Jul 2025 16:00:45 +0200 Subject: [PATCH] Fixed used variable in class --- frontend/src/components/PDFGenerator.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/PDFGenerator.js b/frontend/src/components/PDFGenerator.js index 160330c..b19c337 100644 --- a/frontend/src/components/PDFGenerator.js +++ b/frontend/src/components/PDFGenerator.js @@ -181,15 +181,15 @@ class PDFGenerator { this.addressY = 30; } - this.doc.setFontSize(14); - this.doc.setFont(undefined, 'bold'); - this.doc.text(clubName, 20, this.addressY); + this.pdf.setFontSize(14); + this.pdf.setFont(undefined, 'bold'); + this.pdf.text(clubName, 20, this.addressY); - this.doc.setFontSize(12); - this.doc.setFont(undefined, 'normal'); + this.pdf.setFontSize(12); + this.pdf.setFont(undefined, 'normal'); addressLines.forEach(line => { this.addressY += 7; - this.doc.text(line, 20, this.addressY); + this.pdf.text(line, 20, this.addressY); }); this.addressY += 10; // Abstand zur nächsten Adresse