Commit 9cff196 1 parent 021e999 commit 9cff196 Copy full SHA for 9cff196
File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,10 @@ const FS = {
43
43
} else {
44
44
Environment . getEnvironment ( ) . then ( ( envName : string ) => {
45
45
// define FullStory user identity
46
- metadata . environment = envName ;
46
+ let localMetadata = metadata ;
47
+ localMetadata . environment = envName ;
47
48
FullStory . identify ( String ( metadata . accountID ) , {
48
- properties : metadata ,
49
+ properties : localMetadata ,
49
50
} ) ;
50
51
} ) ;
51
52
}
Original file line number Diff line number Diff line change @@ -64,9 +64,10 @@ const FS = {
64
64
FS . onReady ( ) . then ( ( ) => {
65
65
FS . consent ( true ) ;
66
66
if ( value ) {
67
- value . environment = envName ;
67
+ let localMetadata = value ;
68
+ localMetadata . environment = envName ;
69
+ FS . fsIdentify ( value ) ;
68
70
}
69
- FS . fsIdentify ( value ) ;
70
71
} ) ;
71
72
} ) ;
72
73
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments