diff --git a/src/components/dashboard/DashboardLayout.tsx b/src/components/dashboard/DashboardLayout.tsx index 936e9883..c831a99c 100644 --- a/src/components/dashboard/DashboardLayout.tsx +++ b/src/components/dashboard/DashboardLayout.tsx @@ -33,8 +33,10 @@ export function DashboardLayout({ getUserSites(viewer.address).then((sites) => { setSubscriptions(sites || []) }) + } else { + router.push("/") } - }, [viewer?.address]) + }, [viewer?.address, router]) const links: { href: string diff --git a/src/components/site/SitePage.tsx b/src/components/site/SitePage.tsx index 34eb4c30..d1debd6b 100644 --- a/src/components/site/SitePage.tsx +++ b/src/components/site/SitePage.tsx @@ -43,8 +43,8 @@ export const SitePage: React.FC<{ contentHTML={page.body?.content || ""} className="my-10" /> -
-

🔔 This post has been permanently stored on-chain and signed by its creator.

+
+

🔔 This {page.tags?.includes("post") ? "post" : "page"} has been permanently stored on-chain and signed by its creator.