Update enums to be all caps (#12372)

- Make custom domain public (remove from lab)
- Use ALL_CAPS definition for enums
This commit is contained in:
Félix Malfait
2025-05-29 14:08:36 +02:00
committed by GitHub
parent 76d0be7f81
commit 4485e8e3db
165 changed files with 845 additions and 847 deletions

View File

@ -24,6 +24,7 @@ export const SentryInitEffect = () => {
const [isSentryInitialized, setIsSentryInitialized] = useState(false);
const [isSentryInitializing, setIsSentryInitializing] = useState(false);
const [isSentryUserDefined, setIsSentryUserDefined] = useState(false);
useEffect(() => {
if (
@ -47,13 +48,14 @@ export const SentryInitEffect = () => {
setIsSentryInitializing(false);
}
if (isDefined(currentUser)) {
if (isDefined(currentUser) && !isSentryUserDefined) {
setUser({
email: currentUser?.email,
id: currentUser?.id,
workspaceId: currentWorkspace?.id,
workspaceMemberId: currentWorkspaceMember?.id,
});
setIsSentryUserDefined(true);
} else {
setUser(null);
}
@ -64,6 +66,7 @@ export const SentryInitEffect = () => {
currentUser,
currentWorkspace,
currentWorkspaceMember,
isSentryUserDefined,
]);
return <></>;
};