diff --git a/app/api/event1/getTeamData/route.js b/app/api/event1/getTeamData/route.js index 707db1b..2b7c421 100644 --- a/app/api/event1/getTeamData/route.js +++ b/app/api/event1/getTeamData/route.js @@ -25,7 +25,7 @@ export async function GET(req) { const team = await Event1.findById(teamId).populate('members'); console.log("^^^^^^",team); if (!team) { - return NextResponse.json({ message: 'Team is not there ' }); + return NextResponse.json({ message: 'Team is not there' }, {status:201}); } return NextResponse.json({ diff --git a/app/events/event1/joinTeam/page.jsx b/app/events/event1/joinTeam/page.jsx index cd2f774..76dd5c6 100644 --- a/app/events/event1/joinTeam/page.jsx +++ b/app/events/event1/joinTeam/page.jsx @@ -158,7 +158,7 @@ const JoinTeam = ({ teamCode: propTeamCode }) => { // tailwind
-
+

Join a Team

diff --git a/app/events/event1/leaderDash/page.jsx b/app/events/event1/leaderDash/page.jsx index a6ba51d..8a09c20 100644 --- a/app/events/event1/leaderDash/page.jsx +++ b/app/events/event1/leaderDash/page.jsx @@ -94,7 +94,7 @@ export default function LeaderDashboard() { setIsLoading(false); }) - .catch((err) => {}); + .catch((err) => {console.log('err', err)}); }; function toggleDelete() { diff --git a/app/events/event1/teamCode/page.jsx b/app/events/event1/teamCode/page.jsx index 11391a9..9940d85 100644 --- a/app/events/event1/teamCode/page.jsx +++ b/app/events/event1/teamCode/page.jsx @@ -104,7 +104,7 @@ export default function TeamCode() { }}> Click here to copy
- + copyIcon