From feca5917a2ff69f5d9a7747cdc5887c38fa80368 Mon Sep 17 00:00:00 2001 From: Abhi Jain Date: Thu, 5 Jan 2023 13:11:34 +0530 Subject: [PATCH 1/2] adding useState at required page --- pages/events.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/events.js b/pages/events.js index e71305a7328..82f26ce10b0 100644 --- a/pages/events.js +++ b/pages/events.js @@ -4,6 +4,7 @@ import EventCard from "../components/event/EventCard"; import Alert from "../components/Alert"; import Page from "../components/Page"; import EventKey from "../components/event/EventKey"; +import { useState } from "react"; export async function getServerSideProps(context) { From 41f3b0b3971ba0c438d4000950a933a8cd9fb407 Mon Sep 17 00:00:00 2001 From: Abhi Jain Date: Thu, 5 Jan 2023 13:14:16 +0530 Subject: [PATCH 2/2] removing unused index variable --- pages/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/events.js b/pages/events.js index 82f26ce10b0..3482df44a0b 100644 --- a/pages/events.js +++ b/pages/events.js @@ -39,7 +39,7 @@ export default function Events({ events }) { {!events.length && }
    {events - .filter((event, index) => { + .filter((event) => { if (eventType === 'virtual') { return event.isVirtual === true } else if (eventType === 'in-person') {