diff --git a/src/app/[locale]/(home)/(activities)/topic/[topic]/page.tsx b/src/app/[locale]/(home)/(activities)/topic/[topic]/page.tsx index bdb11a9e..f42b4bf6 100644 --- a/src/app/[locale]/(home)/(activities)/topic/[topic]/page.tsx +++ b/src/app/[locale]/(home)/(activities)/topic/[topic]/page.tsx @@ -55,7 +55,7 @@ export default async function Topic({ {info?.includeTags[0]}
{t(info?.description || "")}
- {info?.includeKeywords?.length || 0 > 0 ? ( + {info?.includeKeywords?.length ? ({t("Topic Keywords")}: {info?.includeKeywords?.join(", ")}
diff --git a/src/components/site/BackToTopFAB.tsx b/src/components/site/BackToTopFAB.tsx index 8ec39b45..9bceb91b 100644 --- a/src/components/site/BackToTopFAB.tsx +++ b/src/components/site/BackToTopFAB.tsx @@ -7,7 +7,7 @@ import { throttle } from "~/lib/utils" import { FABBase } from "../ui/FAB" const isShouldShow = () => - typeof window !== undefined && + typeof window !== "undefined" && document.documentElement.scrollTop > document.documentElement.clientHeight export const BackToTopFAB = () => { diff --git a/src/messages/en.json b/src/messages/en.json index 8f572513..5957cc2c 100644 --- a/src/messages/en.json +++ b/src/messages/en.json @@ -6,7 +6,7 @@ "You are here to be the first patron": "You are here to be the first patron.", "You are here to be the first tipper": "You are here to be the first tipper.", "Filter out possible low-quality content based on AI ratings": "Filter out possible low-quality content based on AI ratings.", - "link post-vs-page" : "https://wordpress.com/zh-cn/support/post-vs-page/", + "link post-vs-page": "https://wordpress.com/zh-cn/support/post-vs-page/", "delete_confirmation": "Are you sure you want to DELETE this {context}?", "description": "An