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:
copilot-swe-agent[bot] 2025-11-24 21:46:37 +00:00
parent a66a053ca9
commit b5bbf878a2
2 changed files with 6 additions and 6 deletions

View file

@ -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
}

View file

@ -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
}