Skip to content

Commit eb5a337

Browse files
authored
fix(feedback): Fix getCurrentHub undefined (#7871)
Possible that the loader SDK has not loaded before rendering the widget modal (seems unlikely though) Fixes DOCS-6A1
1 parent ee9023c commit eb5a337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/feedback/feedbackModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export function FeedbackModal({open, onClose, onSubmit}: FeedbackModalProps) {
188188
});
189189
};
190190

191-
const user = window.Sentry?.getCurrentHub().getScope()?.getUser();
191+
const user = window.Sentry?.getCurrentHub?.()?.getScope()?.getUser();
192192

193193
return (
194194
<Dialog id="feedbackModal" open={open} ref={dialogRef} onClick={onClose}>

0 commit comments

Comments
 (0)