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 open-source creative community written on the blockchain.", "features": { @@ -73,7 +73,7 @@ "Subdomain Available": "Subdomain Available.", "Subdomain Unavailable": "Subdomain Unavailable.", "Published a new post on my blockchain blog: {title} Check it out now!": "Published a new post on my blockchain blog: {title}. Check it out now!", - "Please upload at least one image" : "Please upload at least one image.", + "Please upload at least one image": "Please upload at least one image.", "comma": ".", "xLog's open design allows it to integrate with many other open protocols and applications without friction": "xLog's open design allows it to integrate with many other open protocols and applications without friction.", "Let's talk about xLog, whether to praise or criticize it": "Let's talk about xLog, whether to praise or criticize it.", @@ -115,5 +115,6 @@ "ja": "Japanese", "zh": "Chinese", "zh-TW": "Traditional Chinese", - "Confirmed by {blockNumber} blocks": "Confirmed by {blockNumber} blocks" + "Confirmed by {blockNumber} blocks": "Confirmed by {blockNumber} blocks", + "Become a patron of {name}": "Become a patron of {name}" }