SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: make the license key check case insensitive (#5331)
Vikrant Gupta5df25e83d1f4
diff --git a/frontend/src/container/Header/index.tsx b/frontend/src/container/Header/index.tsxindex 191f83e38b..af24bdc4eb 100644--- a/frontend/src/container/Header/index.tsx+++ b/frontend/src/container/Header/index.tsx@@ -27,6 +27,7 @@ import {import { useSelector } from 'react-redux';import { NavLink } from 'react-router-dom';import { AppState } from 'store/reducers';+import { License } from 'types/api/licenses/def';import AppReducer from 'types/reducer/app';import { getFormattedDate, getRemainingDays } from 'utils/timeUtils';@@ -109,9 +110,13 @@ function HeaderContainer(): JSX.Element {const { data: licenseData, isFetching, status: licenseStatus } = useLicense();+ const licensesStatus: string =+ licenseData?.payload?.licenses?.find((e: License) => e.isCurrent)?.status ||+ '';+const isLicenseActive =- licenseData?.payload?.licenses?.find((e) => e.isCurrent)?.status ===- LICENSE_PLAN_STATUS.VALID;+ licensesStatus?.toLocaleLowerCase() ===+ LICENSE_PLAN_STATUS.VALID.toLocaleLowerCase();useEffect(() => {if (diff --git a/frontend/src/container/SideNav/SideNav.tsx b/frontend/src/container/SideNav/SideNav.tsxindex 6cec0448b2..82697d78b0 100644--- a/frontend/src/container/SideNav/SideNav.tsx+++ b/frontend/src/container/SideNav/SideNav.tsx@@ -152,9 +152,13 @@ function SideNav({const { t } = useTranslation('');+ const licenseStatus: string =+ licenseData?.payload?.licenses?.find((e: License) => e.isCurrent)?.status ||+ '';+const isLicenseActive =- licenseData?.payload?.licenses?.find((e: License) => e.isCurrent)?.status ===- LICENSE_PLAN_STATUS.VALID;+ licenseStatus?.toLocaleLowerCase() ===+ LICENSE_PLAN_STATUS.VALID.toLocaleLowerCase();const isEnterprise = licenseData?.payload?.licenses?.some((license: License) =>