diff --git a/src/components/Activity/ProjectProgress.tsx b/src/components/Activity/ProjectProgress.tsx index 22211e13f..6ac20de28 100644 --- a/src/components/Activity/ProjectProgress.tsx +++ b/src/components/Activity/ProjectProgress.tsx @@ -11,11 +11,15 @@ type ProjectProgressType = { title: string; }; showActions?: boolean; + userId?: string; }; export function ProjectProgress(props: ProjectProgressType) { - const { projectStatus, showActions = true } = props; - const userId = getUser()?.id; + const { + projectStatus, + showActions = true, + userId: defaultUserId = getUser()?.id, + } = props; const shouldShowActions = projectStatus.submittedAt && @@ -43,7 +47,7 @@ export function ProjectProgress(props: ProjectProgressType) { {shouldShowActions && (