From 9b9f27377b3d93a67b6ff068cf06fd47a731e7ba Mon Sep 17 00:00:00 2001 From: Kalidou Diagne Date: Tue, 10 Jun 2025 21:37:04 +0800 Subject: [PATCH] fix: fix research fetch content (#445) --- lib/projectsUtils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/projectsUtils.ts b/lib/projectsUtils.ts index bc1f6e6..85e0693 100644 --- a/lib/projectsUtils.ts +++ b/lib/projectsUtils.ts @@ -4,8 +4,10 @@ import { ProjectInterface } from "./types" export const getProjectById = (id: string | number, lang = "en") => { const project: ProjectInterface = - projects.filter((project) => String(project.id?.toLowerCase()) === id)[0] ?? - {} + projects.filter( + (project) => + String(project.id?.toLowerCase()) === id.toString().toLowerCase() + )[0] ?? {} const content = project?.content?.[lang]