From eb219b960236ad73e84b56188a5add6d41f063aa Mon Sep 17 00:00:00 2001 From: sverben <59171289+sverben@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:12:10 +0200 Subject: [PATCH] chore: rename field --- src/stores/register.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stores/register.ts b/src/stores/register.ts index 0b050da..1fb0a91 100644 --- a/src/stores/register.ts +++ b/src/stores/register.ts @@ -78,8 +78,8 @@ export async function getSlots(token: string | null) { const { slots, members, - dates, - }: { slots: Slot[]; members?: Member[]; dates?: string[] } = await fetch( + registered_dates, + }: { slots: Slot[]; members?: Member[]; registered_dates?: string[] } = await fetch( `${AANMELDEN}/api/v1/slots`, { headers: { @@ -89,6 +89,6 @@ export async function getSlots(token: string | null) { ).then((res) => res.json()); store.set(slotsAtom, slots); - store.set(datesAtom, dates?.map((date) => new Date(date)) || []); + store.set(datesAtom, registered_dates?.map((date) => new Date(date)) || []); store.set(membersAtom, members || []); }