diff --git a/source/features/faster-reviews.tsx b/source/features/faster-reviews.tsx index a8eccbed01e..dae9533e7b5 100644 --- a/source/features/faster-reviews.tsx +++ b/source/features/faster-reviews.tsx @@ -7,12 +7,16 @@ import * as pageDetect from 'github-url-detection'; import features from '.'; import onReplacedElement from '../helpers/on-replaced-element'; -async function addSidebarReviewButton(): Promise { +async function addSidebarReviewButton(): Promise { const reviewFormUrl = new URL(location.href); reviewFormUrl.pathname += '/files'; reviewFormUrl.hash = 'submit-review'; const sidebarReviewsSection = await elementReady('[aria-label="Select reviewers"] .discussion-sidebar-heading'); + if (select.exists('[data-hotkey="v"]', sidebarReviewsSection)) { + return false; + } + sidebarReviewsSection!.append( review now