diff --git a/src/components/feedback/feedbackModal.tsx b/src/components/feedback/feedbackModal.tsx index 02dbb2b2ff2dc..608512c0e0aa4 100644 --- a/src/components/feedback/feedbackModal.tsx +++ b/src/components/feedback/feedbackModal.tsx @@ -188,7 +188,7 @@ export function FeedbackModal({open, onClose, onSubmit}: FeedbackModalProps) { }); }; - const user = window.Sentry?.getCurrentHub().getScope()?.getUser(); + const user = window.Sentry?.getCurrentHub?.()?.getScope()?.getUser(); return (