mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-10 22:58:06 -05:00
fix: fix research fetch content (#445)
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user