diff --git a/app/(pages)/projects/sections/ProjectContent.tsx b/app/(pages)/projects/sections/ProjectContent.tsx index 2a567d3..70342c2 100644 --- a/app/(pages)/projects/sections/ProjectContent.tsx +++ b/app/(pages)/projects/sections/ProjectContent.tsx @@ -74,7 +74,13 @@ export const ProjectContent = ({ project }: { project: ProjectInterface }) => { const projectStatusMessage = ProjectStatusMessageMap?.[project?.projectStatus as ProjectStatus] - const isResearchProject = project?.category === ProjectCategory.RESEARCH + const isResearchProject = + project?.category?.toLowerCase() === ProjectCategory.RESEARCH.toLowerCase() + const backLink = isResearchProject ? "/research" : "/projects" + + console.table({ + isResearchProject, + }) return (
@@ -117,10 +123,12 @@ export const ProjectContent = ({ project }: { project: ProjectInterface }) => {
- + - {LABELS.COMMON.PROJECT_LIBRARY} + {isResearchProject + ? LABELS.COMMON.PROJECT_RESEARCH_LIBRARY + : LABELS.COMMON.PROJECT_LIBRARY}
diff --git a/app/labels.ts b/app/labels.ts index 676b89d..e2ea786 100644 --- a/app/labels.ts +++ b/app/labels.ts @@ -74,6 +74,7 @@ export const LABELS = { SEARCH_PROJECT_PLACEHOLDER: "Search project title or keyword", LAST_UPDATED_AT: "Last updated {{date}}", PROJECT_LIBRARY: "Project Library", + PROJECT_RESEARCH_LIBRARY: "Research Library", BACK_TO_PROJECT_LIBRARY: "Back to project library", DISCOVER_MORE: "Discover more", GO_TO_HOME: "Go to homepage",