From e35a4cea7c5f6715ff986d6fe6f2aac968d09d58 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 12 Jan 2024 10:18:58 +0100 Subject: [PATCH] fix(ui): capture rate - ee --- .../shared/SessionSettings/components/CaptureRate.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx b/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx index 2bc65ff94..97a6b78d6 100644 --- a/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx +++ b/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx @@ -147,7 +147,8 @@ function CaptureRate(props: Props) { export default connect((state: any) => ({ isAdmin: state.getIn(['user', 'account', 'admin']) || state.getIn(['user', 'account', 'superAdmin']), - isEnterprise: + isEnterprise: !document.location.href.includes('app.openreplay.com') && ( state.getIn(['user', 'account', 'edition']) === 'ee' || state.getIn(['user', 'authDetails', 'edition']) === 'ee' + ) }))(observer(CaptureRate));