From 8227a99c0aee780d1f9e3b0df9fceae938dd8020 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Fri, 20 Mar 2026 11:41:50 -0700 Subject: [PATCH] Fix tracking-code intl message not rendering due to unescaped HTML tags --- public/intl/messages/en-US.json | 2 +- src/app/(main)/websites/[websiteId]/replays/ReplaysPage.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/intl/messages/en-US.json b/public/intl/messages/en-US.json index fc29387ec..9a5ef402e 100644 --- a/public/intl/messages/en-US.json +++ b/public/intl/messages/en-US.json @@ -419,7 +419,7 @@ "team-already-member": "You are already a member of the team.", "team-not-found": "Team not found.", "team-websites-info": "Websites can be viewed by anyone on the team.", - "tracking-code": "To track stats for this website, place the following code in the ... section of your HTML.", + "tracking-code": "To track stats for this website, place the following code in the '...' section of your HTML.", "transfer-team-website-to-user": "Transfer this website to your account?", "transfer-user-website-to-team": "Select the team to transfer this website to.", "transfer-website": "Transfer website ownership to your account or another team.", diff --git a/src/app/(main)/websites/[websiteId]/replays/ReplaysPage.tsx b/src/app/(main)/websites/[websiteId]/replays/ReplaysPage.tsx index 217908a4a..ecd1b52e7 100644 --- a/src/app/(main)/websites/[websiteId]/replays/ReplaysPage.tsx +++ b/src/app/(main)/websites/[websiteId]/replays/ReplaysPage.tsx @@ -16,14 +16,14 @@ const KEY_NAME = 'umami.replays.tab'; export function ReplaysPage({ websiteId }: { websiteId: string }) { const [tab, setTab] = useState(getItem(KEY_NAME) || 'replays'); const { t, labels, messages } = useMessages(); - const { hasFeature, hasSubscription, cloudMode } = useSubscription(); + const { hasFeature, cloudMode } = useSubscription(); const handleSelect = (value: Key) => { setItem(KEY_NAME, value); setTab(value); }; - if (cloudMode && hasSubscription && !hasFeature('replays')) { + if (cloudMode && !hasFeature('replays')) { return (