Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 9, 2023
1 parent 5c4f712 commit ae997a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/routes/signup-pupil/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import raw_form from '../../signup-form/de/pupil.yml'

export const load = async () => {
let chapters = await fetch_chapters()
chapters = chapters.filter((chap) => chap.signup == 'everyone')
chapters = chapters.filter((chap) => chap.signup == `everyone`)

const form = parse_form_data({ ...raw_form, ...messages })

Expand Down
4 changes: 3 additions & 1 deletion src/routes/signup-student/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import raw_form from '../../signup-form/de/student.yml'

export const load = async () => {
let chapters = await fetch_chapters()
chapters = chapters.filter((chap) => chap.signup == 'everyone' || chap.signup == 'onlyStudents')
chapters = chapters.filter(
(chap) => chap.signup == `everyone` || chap.signup == `onlyStudents`
)

const form = parse_form_data({ ...raw_form, ...messages })

Expand Down
3 changes: 1 addition & 2 deletions src/routes/standorte/[slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { fetch_page } from '$lib/fetch'
import { error } from '@sveltejs/kit'
import { fetch_chapters } from '$lib/fetch'


export const load = async ({ params }) => {
const { slug } = params

Expand All @@ -14,5 +13,5 @@ export const load = async ({ params }) => {

if (!page) throw error(404)

return { page, slug , selectedChapter }
return { page, slug, selectedChapter }
}
6 changes: 3 additions & 3 deletions src/routes/standorte/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<BasePage {page}>
<!-- Buttons at the end of the chapter pages to contact the different chapter manager by mail
when selectedChapter is not defined show all buttons as default -->
{#if !selectedChapter?.signup || selectedChapter?.signup == 'everyone'}
{#if !selectedChapter?.signup || selectedChapter?.signup == `everyone`}
<h2 style="text-align: center; margin-top: 2em;">{$microcopy?.location?.register}</h2>
<section>
<span>
Expand Down Expand Up @@ -56,7 +56,7 @@
>
</span>
</section>
{:else if selectedChapter?.signup == 'onlyStudents'}
{:else if selectedChapter?.signup == `onlyStudents`}
<h2 style="text-align: center; margin-top: 2em;">{$microcopy?.location?.register}</h2>
<section>
<span>
Expand Down Expand Up @@ -107,7 +107,7 @@
{/if}

<svelte:fragment slot="afterBody">
{#if selectedChapter?.signup !== 'nobody'}
{#if selectedChapter?.signup !== `nobody`}
<h2 id="kontakt">{$microcopy?.location?.contact}</h2>
<p>{$microcopy?.location?.questions}</p>
<ul class="contact">
Expand Down

0 comments on commit ae997a3

Please sign in to comment.