diff --git a/frontend/__snapshots__/exporter-exporter--dashboard--dark.png b/frontend/__snapshots__/exporter-exporter--dashboard--dark.png index 87e454dd25caf..88286b1ad7d27 100644 Binary files a/frontend/__snapshots__/exporter-exporter--dashboard--dark.png and b/frontend/__snapshots__/exporter-exporter--dashboard--dark.png differ diff --git a/frontend/src/toolbar/elements/heatmapLogic.ts b/frontend/src/toolbar/elements/heatmapLogic.ts index e97b1bf998532..948b51b9439be 100644 --- a/frontend/src/toolbar/elements/heatmapLogic.ts +++ b/frontend/src/toolbar/elements/heatmapLogic.ts @@ -437,8 +437,11 @@ export const heatmapLogic = kea([ scrollDepthPosthogJsError: [ (s) => [s.posthog], (posthog: PostHog): 'version' | 'disabled' | null => { - const posthogVersion = - posthog?._calculate_event_properties('test', {}, new Date())?.['$lib_version'] ?? '0.0.0' + // Later SDKs have the version in the posthog object, but we need to check for the old way of doing it too + const posthogVersion: string = + posthog.version ?? + (posthog as any)?._calculate_event_properties?.('test', {}, new Date())?.['$lib_version'] ?? + '0.0.0' const majorMinorVersion = posthogVersion.split('.') const majorVersion = parseInt(majorMinorVersion[0], 10) const minorVersion = parseInt(majorMinorVersion[1], 10)