diff --git a/components/LetterOptions.tsx b/components/LetterOptions.tsx
index be01f9e..fd59aaf 100644
--- a/components/LetterOptions.tsx
+++ b/components/LetterOptions.tsx
@@ -15,7 +15,7 @@ interface IProps extends IDocProps {
}
export default function LetterOptions(props: IProps) {
- const templateTypeOptions = [
+ const letterOptionTypes = [
{
value: 'brief-fam',
name: 'Familie',
@@ -38,11 +38,11 @@ export default function LetterOptions(props: IProps) {
diff --git a/interfaces/IDocProps.ts b/interfaces/IDocProps.ts
index 3592766..94987e1 100644
--- a/interfaces/IDocProps.ts
+++ b/interfaces/IDocProps.ts
@@ -12,7 +12,7 @@ export interface IDocProps {
signature: string
specialMail: string
subject: string
- template: string
+ letterOption: string
yourMail: string
yourRef: string
yourRefName: string
diff --git a/lib/templates.ts b/lib/templates.ts
index b13f765..30339f7 100644
--- a/lib/templates.ts
+++ b/lib/templates.ts
@@ -6,7 +6,7 @@ function convertLineBreaks(lines: string) {
export function brief(options: IDocProps) {
const {
- template,
+ letterOption,
subject,
yourRef,
yourRefName,
@@ -27,7 +27,7 @@ export function brief(options: IDocProps) {
return `% brief document
\\documentclass{scrlttr2}
-\\LoadLetterOption{${template}}
+\\LoadLetterOption{${letterOption}}
\\setkomavar{subject}{${subject}}