Skip to content

Commit

Permalink
chore: rename field
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Sep 10, 2024
1 parent 2ebdbc9 commit eb219b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stores/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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 || []);
}

0 comments on commit eb219b9

Please sign in to comment.