Use null instead of empty strings to clear Sentry tags
Co-authored-by: egelhaus <156946629+egelhaus@users.noreply.github.com>
This commit is contained in:
parent
a66a053ca9
commit
b5bbf878a2
2 changed files with 6 additions and 6 deletions
|
|
@ -54,9 +54,9 @@ export const clearSentryUserContext = () => {
|
|||
|
||||
try {
|
||||
Sentry.setUser(null);
|
||||
Sentry.setTag('user.activated', '');
|
||||
Sentry.setTag('user.provider', '');
|
||||
Sentry.setTag('user.super_admin', '');
|
||||
Sentry.setTag('user.activated', null);
|
||||
Sentry.setTag('user.provider', null);
|
||||
Sentry.setTag('user.super_admin', null);
|
||||
} catch {
|
||||
// Silently fail if Sentry throws an error - we don't want to break the app
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,9 +66,9 @@ export const clearSentryUserContext = () => {
|
|||
|
||||
try {
|
||||
Sentry.setUser(null);
|
||||
Sentry.setTag('user.org_id', '');
|
||||
Sentry.setTag('user.role', '');
|
||||
Sentry.setTag('user.tier', '');
|
||||
Sentry.setTag('user.org_id', null);
|
||||
Sentry.setTag('user.role', null);
|
||||
Sentry.setTag('user.tier', null);
|
||||
} catch {
|
||||
// Silently fail if Sentry throws an error - we don't want to break the app
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue