Fix user can't create team

This commit is contained in:
KMKoushik committed 2024-05-20 09:13:56 +10:00
1 parent 0104341015
commit d92feec4f8
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ export const teamRouter = createTRPCRouter({
},
});
if (teams) {
if (teams.length > 0) {
console.log("User already has a team");
return;
}