Skip to content

Commit

Permalink
[WT-2010] update telemetry prop name (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepti-imx authored Dec 20, 2023
1 parent 4a444d7 commit 41e3f41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/checkout/sdk/src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ export type ImxAddressConfig = {

/**
* A type representing the telemetry configurations.
* @property {string} publishableApiKey
* @property {string} segmentPublishableKey
*/
export type TelemetryConfig = {
publishableApiKey: string
segmentPublishableKey: string
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function SetupAnalytics(
(async () => {
const config = await telemetry() as TelemetryConfig;
if (!config) return;
updateWriteKey(config.publishableApiKey);
updateWriteKey(config.segmentPublishableKey);
})();
}, [telemetry]);

Expand Down

0 comments on commit 41e3f41

Please sign in to comment.