Skip to content

Commit 60e453a

Browse files
committed
apply suggestion
1 parent 257224f commit 60e453a

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ const routeTree = rootRoute.addChildren([
5555
]);
5656
const router = createRouter({ routeTree });
5757

58-
// Initialize PostHog if configured
5958
const config = AppConfig();
6059
if (config.posthog.apiKey && config.posthog.host) {
6160
posthog.init(config.posthog.apiKey, {

src/components/ExamplesDropdown.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,10 @@ export function ExamplesDropdown({
8787
<AlertDialogAction
8888
onClick={() => {
8989
if (selectedExample) {
90-
if (config.posthog.apiKey && config.posthog.host) {
91-
posthog.capture("schema_selected", {
92-
schema_id: selectedExample.id,
93-
schema_title: selectedExample.title,
94-
});
95-
}
90+
posthog.capture("schema_selected", {
91+
schema_id: selectedExample.id,
92+
schema_title: selectedExample.title,
93+
});
9694
loadExample(selectedExample);
9795
}
9896
}}

0 commit comments

Comments
 (0)