Skip to content

Commit 5d55818

Browse files
only if send default pii
1 parent 7669fb0 commit 5d55818

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/src/js/client.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ export class ReactNativeClient extends BaseClient<ReactNativeClientOptions> {
5454

5555
this._outcomesBuffer = [];
5656

57-
this.on('postprocessEvent', addAutoIpAddressToUser);
58-
this.on('beforeSendSession', addAutoIpAddressToSession);
57+
if (options.sendDefaultPii === true) {
58+
this.on('postprocessEvent', addAutoIpAddressToUser);
59+
this.on('beforeSendSession', addAutoIpAddressToSession);
60+
}
5961
}
6062

6163
/**

0 commit comments

Comments
 (0)