Skip to content

Commit

Permalink
fix: account id was undefined (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyusuftk authored Oct 14, 2024
1 parent bb347a9 commit 76ac36b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clevertap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clevertap.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clevertap.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/clevertap.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ export default class CleverTap {
// already initailsed
return
}
checkBuilder(this.#logger, accountId)

StorageManager.removeCookie('WZRK_P', window.location.hostname)
if (!this.#account.id) {
if (!accountId) {
Expand All @@ -599,6 +599,7 @@ export default class CleverTap {
}
this.#account.id = accountId
}
checkBuilder(this.#logger, this.#account.id)
this.#session.cookieName = SCOOKIE_PREFIX + '_' + this.#account.id

if (region) {
Expand Down

0 comments on commit 76ac36b

Please sign in to comment.