Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

typefix

Blue Mouseb11f3ec0372f
diff --git a/app/pages/Project/View/ViewProject.tsx b/app/pages/Project/View/ViewProject.tsx
index 8547d90b7..ae2db271f 100644
--- a/app/pages/Project/View/ViewProject.tsx
+++ b/app/pages/Project/View/ViewProject.tsx
@@ -199,7 +199,7 @@ const ViewProject = ({
// find project by id from url from state in redux projects and sharedProjects. projects and sharedProjects loading from api in Saga on page load
const project: IProjectForShared = useMemo(() => _find([...projects, ..._map(sharedProjects, (item) => ({ ...item.project, role: item.role }))], p => p.id === id) || {} as IProjectForShared, [projects, id, sharedProjects])
- const projectPassword: string = useMemo(() => password[id] || getItem(PROJECTS_PROTECTED)?.[id] || queryPassword || '', [id, password, queryPassword])
+ const projectPassword: string = useMemo(() => password[id] || (getItem(PROJECTS_PROTECTED)?.[id] as string) || queryPassword || '', [id, password, queryPassword])
/* isSharedProject is a boolean check if project is shared. If isSharedProject is true,
we used role and other colummn from sharedProjects.