Skip to content

Commit

Permalink
chore: biome
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoesbergen committed Oct 19, 2024
1 parent dd11335 commit bff4d19
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/stores/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) || []);
Expand Down

0 comments on commit bff4d19

Please sign in to comment.