MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / getUser

Function getUser

packages/feedback/src/modal/integration.tsx:9–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { createDialogStyles } from './components/Dialog.css';
8
9function getUser(): User | undefined {
10 const currentUser = getCurrentScope().getUser();
11 const isolationUser = getIsolationScope().getUser();
12 const globalUser = getGlobalScope().getUser();
13 if (currentUser && Object.keys(currentUser).length) {
14 return currentUser;
15 }
16 if (isolationUser && Object.keys(isolationUser).length) {
17 return isolationUser;
18 }
19 return globalUser;
20}
21
22export const feedbackModalIntegration = ((): FeedbackModalIntegration => {
23 return {

Callers 1

integration.tsxFile · 0.70

Calls 5

getCurrentScopeFunction · 0.90
getIsolationScopeFunction · 0.90
getGlobalScopeFunction · 0.90
getUserMethod · 0.80
keysMethod · 0.65

Tested by

no test coverage detected