diff --git a/src/pages/index.tsx b/src/pages/index.tsx index d38e78ae460..5368adb0f5c 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -48,6 +48,9 @@ const Index = () => { func: (_run: Activity, _value: string) => boolean ) => { scrollToMap(); + if(name != 'Year'){ + setYear(thisYear) + } setActivity(filterAndSortRuns(activities, item, func, sortDateFunc)); setRunIndex(-1); setTitle(`${item} ${name} Running Heatmap`);