From 176fc6d0d845033023978136e8087082e1e18ea8 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Sun, 12 Nov 2023 15:20:28 -0600 Subject: [PATCH] Revert changes to pid.tsx' --- pages/event/[pid].tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pages/event/[pid].tsx b/pages/event/[pid].tsx index 2713527..f2e936b 100644 --- a/pages/event/[pid].tsx +++ b/pages/event/[pid].tsx @@ -19,10 +19,7 @@ const EventDetail = () => { useEffect(() => { if (pid) { fetchData('/api/event/' + pid) - .then(data => { - console.log(data); - setEvent(data); - }) + .then(data => setEvent(data)) .catch(err => setError(err)); } else setError(new Error('No pid found')); }, [pid]);