From 8d0884d6fd3e3e4936ae1b996035f1b9c9356c12 Mon Sep 17 00:00:00 2001 From: dracco1993 Date: Sat, 20 Jun 2020 13:56:05 -0400 Subject: [PATCH] Add todo for default year --- src/pages/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/events.js b/src/pages/events.js index 251e66f..87c0f70 100644 --- a/src/pages/events.js +++ b/src/pages/events.js @@ -88,7 +88,7 @@ const Events = ({ year, refetchOnLoad }) => { }; Events.getInitialProps = async ({ reduxStore, query }) => { - let year = 2020; + let year = 2020; // TODO: pull this from the /status endpoint if (query.year) { year = parseInt(query.year, 10); }