From bff4d19d8e7c815fb2a184e2c817c5054e80a34f Mon Sep 17 00:00:00 2001 From: Ronald Moesbergen Date: Sat, 19 Oct 2024 12:43:44 +0200 Subject: [PATCH] chore: biome --- src/stores/register.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/stores/register.ts b/src/stores/register.ts index 1fb0a91..72f386f 100644 --- a/src/stores/register.ts +++ b/src/stores/register.ts @@ -79,14 +79,12 @@ export async function getSlots(token: string | null) { slots, members, registered_dates, - }: { slots: Slot[]; members?: Member[]; registered_dates?: string[] } = await fetch( - `${AANMELDEN}/api/v1/slots`, - { + }: { slots: Slot[]; members?: Member[]; registered_dates?: string[] } = + await fetch(`${AANMELDEN}/api/v1/slots`, { headers: { authorization: `Bearer ${token}`, }, - }, - ).then((res) => res.json()); + }).then((res) => res.json()); store.set(slotsAtom, slots); store.set(datesAtom, registered_dates?.map((date) => new Date(date)) || []);