Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Allow replays access for users without billing subscription

Mike Cao3659c66161a5
diff --git a/src/app/(main)/websites/[websiteId]/replays/ReplaysPage.tsx b/src/app/(main)/websites/[websiteId]/replays/ReplaysPage.tsx
index ecd1b52e7..217908a4a 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, cloudMode } = useSubscription();
+ const { hasFeature, hasSubscription, cloudMode } = useSubscription();
const handleSelect = (value: Key) => {
setItem(KEY_NAME, value);
setTab(value);
};
- if (cloudMode && !hasFeature('replays')) {
+ if (cloudMode && hasSubscription && !hasFeature('replays')) {
return (
<Column gap="3">
<Panel>