Skip to content

Commit 9cff196

Browse files
committed
lint issues
1 parent 021e999 commit 9cff196

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/libs/Fullstory/index.native.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ const FS = {
4343
} else {
4444
Environment.getEnvironment().then((envName: string) => {
4545
// define FullStory user identity
46-
metadata.environment = envName;
46+
let localMetadata = metadata;
47+
localMetadata.environment = envName;
4748
FullStory.identify(String(metadata.accountID), {
48-
properties: metadata,
49+
properties: localMetadata,
4950
});
5051
});
5152
}

src/libs/Fullstory/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ const FS = {
6464
FS.onReady().then(() => {
6565
FS.consent(true);
6666
if (value) {
67-
value.environment = envName;
67+
let localMetadata = value;
68+
localMetadata.environment = envName;
69+
FS.fsIdentify(value);
6870
}
69-
FS.fsIdentify(value);
7071
});
7172
});
7273
} catch (e) {

0 commit comments

Comments
 (0)