From 9cfc5212562ad8e7991e32d063ae78afd84d57f9 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Fri, 5 Apr 2024 10:24:22 -0400 Subject: [PATCH] Move onChange handler to correct spot --- app/routes/events-team.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/routes/events-team.tsx b/app/routes/events-team.tsx index 0f242bd..4b98631 100644 --- a/app/routes/events-team.tsx +++ b/app/routes/events-team.tsx @@ -480,17 +480,16 @@ export default function () { - { - setShowOld(true); - setEventData([...eventData]); - }} - > + Show old events - + { + setShowOld(e.target.checked); + setEventData([...eventData]); + }} + /> Book an Event