diff --git a/src/_components/activities/List.svelte b/src/_components/activities/List.svelte index 3878866..f652614 100644 --- a/src/_components/activities/List.svelte +++ b/src/_components/activities/List.svelte @@ -133,6 +133,11 @@ sorted.reverse(); } + $: if (sorted[0].dayOfYear === 'Invalid Date') { + const firstItem = sorted.shift(); + sorted.push(firstItem); + } + $: { if (searchterm === '') { activitiesFiltered = activities;