Skip to content

Commit

Permalink
consistent return
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Sep 20, 2023
1 parent a6d06a8 commit 41de0f7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/githubCta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ export function GitHubCTA({sourceInstanceName, relativePath}: GitHubCTAProps) {
<SmartLink
to="https://github.com/getsentry/sentry-docs/issues/new/choose"
onClick={e => {
if (window.Sentry?.getCurrentHub?.()) {
// Only Stop event propagation if Sentry SDK is loaded
// (i.e. feedback is supported), otherwise will send you to github
e.preventDefault();
showModal();
return false;
return true;
if (!window.Sentry?.getCurrentHub?.()) {
return true;
}

// Only Stop event propagation if Sentry SDK is loaded
// (i.e. feedback is supported), otherwise will send you to github
e.preventDefault();
showModal();
return false;
}}
>
Report a problem
Expand Down

0 comments on commit 41de0f7

Please sign in to comment.