From a0f93bda49bcb3fa5515870f3c82cc1af8738d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 18 Mar 2025 12:54:39 +0100 Subject: [PATCH] chor: correct misspellings (#352) --- .github/ISSUE_TEMPLATE/bug.yml | 2 +- backend/internal/utils/email/email_service_templates.go | 4 ++-- frontend/src/routes/+layout.svelte | 2 +- frontend/src/routes/login/alternative/email/+page.svelte | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index b347b4b1..6c2d5103 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -49,7 +49,7 @@ body: required: false attributes: label: "Log Output" - description: "Output of log files when the issue occured to help us diagnose the issue." + description: "Output of log files when the issue occurred to help us diagnose the issue." - type: markdown attributes: value: | diff --git a/backend/internal/utils/email/email_service_templates.go b/backend/internal/utils/email/email_service_templates.go index 92e1a9cd..0642f322 100644 --- a/backend/internal/utils/email/email_service_templates.go +++ b/backend/internal/utils/email/email_service_templates.go @@ -27,7 +27,7 @@ func GetTemplate[U any, V any](templateMap TemplateMap[U], template Template[V]) return templateMap[template.Path] } -type clonable[V pareseable[V]] interface { +type cloneable[V pareseable[V]] interface { Clone() (V, error) } @@ -35,7 +35,7 @@ type pareseable[V any] interface { ParseFS(fs.FS, ...string) (V, error) } -func prepareTemplate[V pareseable[V]](templateFS fs.FS, template string, rootTemplate clonable[V], suffix string) (V, error) { +func prepareTemplate[V pareseable[V]](templateFS fs.FS, template string, rootTemplate cloneable[V], suffix string) (V, error) { tmpl, err := rootTemplate.Clone() if err != nil { return *new(V), fmt.Errorf("clone root template: %w", err) diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index e89eb78d..0523ab3b 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -31,7 +31,7 @@ {#if !appConfig} {:else} diff --git a/frontend/src/routes/login/alternative/email/+page.svelte b/frontend/src/routes/login/alternative/email/+page.svelte index 4b039759..8483eef7 100644 --- a/frontend/src/routes/login/alternative/email/+page.svelte +++ b/frontend/src/routes/login/alternative/email/+page.svelte @@ -21,7 +21,7 @@ await userService .requestOneTimeAccessEmail(email, data.redirect) .then(() => (success = true)) - .catch((e) => (error = e.response?.data.error || 'An unknown error occured')); + .catch((e) => (error = e.response?.data.error || 'An unknown error occurred')); isLoading = false; }