From 6e93f1649f04912a772f82da3f83698d0063e5c7 Mon Sep 17 00:00:00 2001 From: "ildar.timerbaev" Date: Fri, 22 Nov 2024 17:36:01 +0300 Subject: [PATCH] Fixed typo --- .../feed/[...sections]/_helpers/generate-feed-metadata.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(dynamicPages)/feed/[...sections]/_helpers/generate-feed-metadata.ts b/src/app/(dynamicPages)/feed/[...sections]/_helpers/generate-feed-metadata.ts index 843bbbf98..ba63696a5 100644 --- a/src/app/(dynamicPages)/feed/[...sections]/_helpers/generate-feed-metadata.ts +++ b/src/app/(dynamicPages)/feed/[...sections]/_helpers/generate-feed-metadata.ts @@ -10,7 +10,7 @@ export async function generateFeedMetadata(filter: string, tag: string) { let canonical = `${defaults.base}/${filter}`; let rss = ""; - if (tag.startsWith("%40")) { + if (tag?.startsWith("%40")) { title = `${tag.replace("%40", "@")} ${filter} on decentralized web – Ecency`; description = i18next.t("entry-index.description-user-feed", { u: tag }); } else if (tag) {