Skip to content

Commit

Permalink
disbale team creation by May 17
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed May 17, 2024
1 parent 2fe2f39 commit cf68caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/MyTeam.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const MyTeamPage = () => {
setIsLoading(true);

const res = await z.string().min(1).safeParseAsync(teamName);
if (res.success) {
if (res.success && isBefore(new Date(), teamEditCloseDate)) {
// try to create the new team
try {
const res = await createTeam(teamName);
Expand Down

0 comments on commit cf68caf

Please sign in to comment.