From dc566eed93618d8af873fd6adb9935c66d082de3 Mon Sep 17 00:00:00 2001 From: Pratyush Date: Fri, 15 Mar 2024 20:40:03 +0530 Subject: [PATCH] everything good --- app/events/event1/memberDash/page.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/events/event1/memberDash/page.jsx b/app/events/event1/memberDash/page.jsx index 96e2a47..c3081c4 100644 --- a/app/events/event1/memberDash/page.jsx +++ b/app/events/event1/memberDash/page.jsx @@ -97,7 +97,7 @@ const TeamPage = () => { }; const leaveTeam = () => { - // setIsLoading(true); + setIsLoading(true); fetch( '/api/event1/leaveTeam/', { content: "application/json", method: "POST", @@ -111,8 +111,8 @@ const TeamPage = () => { console.log('data', data) if(data.status == 200) { console.log('sending to makeTeam') - // setIsLoading(true); - // router.push('/events/event1/makeTeam') + setIsLoading(false); + router.push('/events/event1/makeTeam') } }) }