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]);