From 2a63f6131a865b696a7f003f15db1eb3b5be2100 Mon Sep 17 00:00:00 2001 From: xiaolou86 <20718693+xiaolou86@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:12:55 +0800 Subject: [PATCH] fix typos --- pages/careers/index.tsx | 4 ++-- pages/ecosystem/index.tsx | 2 +- utils/api.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/careers/index.tsx b/pages/careers/index.tsx index e2c6ebbf..fb5142fc 100644 --- a/pages/careers/index.tsx +++ b/pages/careers/index.tsx @@ -10,7 +10,7 @@ import Script from "next/script"; import { useRouter } from "next/router"; import NextLink from "next/link"; import Head from "next/head"; -const Carrers: NextPage = () => { +const Careers: NextPage = () => { const router = useRouter(); const { t: pageTranslation } = useTranslation(["page-careers"]); @@ -183,4 +183,4 @@ export async function getStaticProps({ locale }: { locale: string }) { }; } -export default Carrers; +export default Careers; diff --git a/pages/ecosystem/index.tsx b/pages/ecosystem/index.tsx index 436e8c44..4f5cb0fe 100644 --- a/pages/ecosystem/index.tsx +++ b/pages/ecosystem/index.tsx @@ -96,7 +96,7 @@ const Explore: NextPage = ({ // this will make calls to the API, will call handleUpvoteProjectState (optimistic), and will revert by calling it again with the opposite value to revert state const onUpvoteProject = (projectId: string, upvoted: boolean) => { - // window.alert("Disabled for the momment") + // window.alert("Disabled for the moment") //uncomment code to enable upvote functionality and comment/ remove above line // if user is not signed in, take them to sign in page if (!sessionObject) { diff --git a/utils/api.ts b/utils/api.ts index 2c275058..959c7927 100644 --- a/utils/api.ts +++ b/utils/api.ts @@ -162,7 +162,7 @@ export const getSHMProjects = (): Promise<{ twiterUrl: "", status: status || "pending", }); - // Catagory + // Category if (status === "accepted") { categoryCount[projectCategory] = categoryCount[projectCategory] ? categoryCount[projectCategory] + 1