From d5c29659466b8de1b9bd9a503fa366c03cfa8e75 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 11 Apr 2023 17:13:06 +0530 Subject: [PATCH] fix: workspace joining state fix (#780) --- apps/app/components/auth-screens/project/join-project.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app/components/auth-screens/project/join-project.tsx b/apps/app/components/auth-screens/project/join-project.tsx index 285fdc1bc..1c2018db0 100644 --- a/apps/app/components/auth-screens/project/join-project.tsx +++ b/apps/app/components/auth-screens/project/join-project.tsx @@ -28,11 +28,11 @@ export const JoinProject: React.FC = () => { project_ids: [projectId as string], }) .then(() => { - setIsJoiningProject(false); mutate(PROJECT_MEMBERS(projectId as string)); }) .catch((err) => { console.error(err); + setIsJoiningProject(false); }); };