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