Skip to content

Commit

Permalink
Use the correct logic
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Jan 14, 2025
1 parent 87823be commit 12e7db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/integrations/electron-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const electronContextIntegration = defineIntegration(() => {
sendDefaultPii,
} = client.getOptions();

if (sendDefaultPii !== false && typeof event.user?.ip_address === 'undefined') {
if (sendDefaultPii === true && typeof event.user?.ip_address === 'undefined') {
event.user = event.user || {};
event.user.ip_address = event.user.ip_address || '{{auto}}';
}
Expand Down
1 change: 1 addition & 0 deletions test/e2e/test-apps/javascript/main-error/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ init({
dsn: '__DSN__',
debug: true,
autoSessionTracking: false,
sendDefaultPii: true,
onFatalError: () => {},
});

Expand Down

0 comments on commit 12e7db8

Please sign in to comment.