diff --git a/src/components/elements/Cards/ProjectCard/ProjectCard.tsx b/src/components/elements/Cards/ProjectCard/ProjectCard.tsx index 1241271b6..cfc7d0f1a 100644 --- a/src/components/elements/Cards/ProjectCard/ProjectCard.tsx +++ b/src/components/elements/Cards/ProjectCard/ProjectCard.tsx @@ -56,6 +56,12 @@ const ProjectCard = ({ project, onDelete, title, children, className, ...rest }: ); }; + const frameworkNames: { [key: string]: string } = { + ppc: "Priceless Planet Coalition", + hbf: "Harit Bharat Fund", + terrafund: "TerraFund" + }; + return (
@@ -72,11 +78,7 @@ const ProjectCard = ({ project, onDelete, title, children, className, ...rest }:
{t("Framework")}:  - {project.framework_key === "ppc" - ? t("Priceless Planet Coalition") - : project.framework_key === "terrafund" - ? t("TerraFund") - : project.framework_key} + {frameworkNames[project.framework_key] ? t(frameworkNames[project.framework_key]) : project.framework_key}