diff --git a/frontend/src/routes/collections/[id]/+page.svelte b/frontend/src/routes/collections/[id]/+page.svelte index eb06cd0..d149ee8 100644 --- a/frontend/src/routes/collections/[id]/+page.svelte +++ b/frontend/src/routes/collections/[id]/+page.svelte @@ -24,13 +24,17 @@ let collection: Collection; let adventures: Adventure[] = []; + let numVisited: number = 0; + let numAdventures: number = 0; + let transportations: Transportation[] = []; let notes: Note[] = []; let numberOfDays: number = NaN; $: { + numAdventures = adventures.filter((a) => a.type === 'visited' || a.type === 'planned').length; numVisited = adventures.filter((a) => a.type === 'visited').length; } @@ -413,8 +417,8 @@