Skip to content

Commit

Permalink
Fix userId type casting in handleTeamJoinRequest function
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Dec 19, 2024
1 parent fe2f7e4 commit 3994adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/[teamSlug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ function Roster(props: TeamPageProps) {
const handleTeamRequest = async (userId: string, accept: boolean) => {
await api.handleTeamJoinRequest(
accept,
userId as string,
team?._id.toString() ?? "",
userId as string,
);

const reqClone = structuredClone(requests);
Expand Down

0 comments on commit 3994adb

Please sign in to comment.