diff --git a/apps/app/contexts/project-member.context.tsx b/apps/app/contexts/project-member.context.tsx index c7e758a10..bb8fd6fca 100644 --- a/apps/app/contexts/project-member.context.tsx +++ b/apps/app/contexts/project-member.context.tsx @@ -34,7 +34,7 @@ export const ProjectMemberProvider: React.FC = (props) => { const { workspaceSlug, projectId } = router.query; const { data: memberDetails, error } = useSWR( - workspaceSlug && projectId ? USER_PROJECT_VIEW(workspaceSlug.toString()) : null, + workspaceSlug && projectId ? USER_PROJECT_VIEW(projectId.toString()) : null, workspaceSlug && projectId ? () => projectService.projectMemberMe(workspaceSlug.toString(), projectId.toString()) : null, diff --git a/apps/app/layouts/auth-layout/project-authorization-wrapper.tsx b/apps/app/layouts/auth-layout/project-authorization-wrapper.tsx index 9caaa3e26..7986227f3 100644 --- a/apps/app/layouts/auth-layout/project-authorization-wrapper.tsx +++ b/apps/app/layouts/auth-layout/project-authorization-wrapper.tsx @@ -21,7 +21,6 @@ import { PrimaryButton, Spinner } from "components/ui"; // icons import { LayerDiagonalIcon } from "components/icons"; - type Meta = { title?: string | null; description?: string | null; @@ -61,9 +60,7 @@ const ProjectAuthorizationWrapped: React.FC = ({ const router = useRouter(); const { workspaceSlug, projectId } = router.query; - const { - issueView, - } = useIssuesView(); + const { issueView } = useIssuesView(); const { loading, error, memberRole: memberType } = useProjectMyMembership(); @@ -97,22 +94,6 @@ const ProjectAuthorizationWrapped: React.FC = ({ - ) : error?.status === 401 || error?.status === 403 ? ( - - ) : error?.status === 404 ? ( -
-
-

No such project exist. Create one?

- { - const e = new KeyboardEvent("keydown", { key: "p" }); - document.dispatchEvent(e); - }} - > - Create project - -
-
) : settingsLayout && (memberType?.isGuest || memberType?.isViewer) ? (