Skip to content

Commit

Permalink
fix: remove reset function + test AbTest value
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Nov 1, 2022
1 parent 4570d72 commit 58e6769
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/services/analytics/gtm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,12 @@ export const gtmSetChainId = (chainId: string): void => {
_chainId = chainId
}

export const enum AbTest {
SAFE_CREATION = 'safe-creation',
}
export const enum AbTest {}

let _abTest: AbTest | null = null

const gtmResetAbTest = (): void => {
_abTest = null
}

export const gtmSetAbTest = (abTest: AbTest): (() => void) => {
export const gtmSetAbTest = (abTest: AbTest): void => {
_abTest = abTest

// Return a cleanup function
return gtmResetAbTest
}

export const gtmInit = (): void => {
Expand Down

0 comments on commit 58e6769

Please sign in to comment.