Skip to content

Commit 362ef6c

Browse files
committed
Merge branch 'team-create' of https://github.com/HackRU/HackRU-Backend into team-create
2 parents 2daddee + aff2eea commit 362ef6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/functions/teams/create/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const teamsCreate: ValidatedEventAPIGatewayProxyEvent<typeof schema> = async (ev
7575
}
7676

7777
// Check if user already leads a team
78-
if (authUser.team_info && authUser.team_info.role === 'leader') {
78+
if (authUser.team_info?.role === 'leader') {
7979
return {
8080
statusCode: 400,
8181
body: JSON.stringify({

0 commit comments

Comments
 (0)