From 7c1cb7631d04fc2d5267e3e8e4193a6b784d3132 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Thu, 8 Feb 2024 15:11:42 -0800 Subject: [PATCH] fix cloud mode for teams --- src/app/(main)/settings/teams/TeamsHeader.tsx | 2 +- src/app/(main)/settings/teams/[teamId]/team/TeamEditForm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(main)/settings/teams/TeamsHeader.tsx b/src/app/(main)/settings/teams/TeamsHeader.tsx index a656e500..8aa5e7a3 100644 --- a/src/app/(main)/settings/teams/TeamsHeader.tsx +++ b/src/app/(main)/settings/teams/TeamsHeader.tsx @@ -8,7 +8,7 @@ import TeamsAddButton from './TeamsAddButton'; export function TeamsHeader({ allowCreate = true }: { allowCreate?: boolean }) { const { formatMessage, labels } = useMessages(); const { user } = useLogin(); - const cloudMode = process.env.CLOUD_MODE; + const cloudMode = !!process.env.cloudMode; return ( diff --git a/src/app/(main)/settings/teams/[teamId]/team/TeamEditForm.tsx b/src/app/(main)/settings/teams/[teamId]/team/TeamEditForm.tsx index d81bd01e..fc192df1 100644 --- a/src/app/(main)/settings/teams/[teamId]/team/TeamEditForm.tsx +++ b/src/app/(main)/settings/teams/[teamId]/team/TeamEditForm.tsx @@ -26,7 +26,7 @@ export function TeamEditForm({ teamId, allowEdit }: { teamId: string; allowEdit? const ref = useRef(null); const [accessCode, setAccessCode] = useState(team.accessCode); const { showToast } = useToasts(); - const cloudMode = process.env.CLOUD_MODE; + const cloudMode = !!process.env.cloudMode; const handleSubmit = async (data: any) => { mutate(data, {