diff options
author | 2021-03-21 05:41:17 -0400 | |
---|---|---|
committer | 2021-03-21 05:41:17 -0400 | |
commit | 51f61b3c3cf24b7b904d5893bac91b8c520553c8 (patch) | |
tree | be86fefedcb22b2a78b04375ebb287a0263cfab0 /source/features/quick-review-buttons.tsx | |
parent | ec19b4552fe4e2ec265f102efece9c1b55bce38f (diff) | |
download | refined-github-51f61b3c3cf24b7b904d5893bac91b8c520553c8.tar.gz refined-github-51f61b3c3cf24b7b904d5893bac91b8c520553c8.tar.zst refined-github-51f61b3c3cf24b7b904d5893bac91b8c520553c8.zip |
Update dependencies (#4138)
Co-authored-by: Federico Brigante <me@fregante.com>
Diffstat (limited to 'source/features/quick-review-buttons.tsx')
-rw-r--r-- | source/features/quick-review-buttons.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/quick-review-buttons.tsx b/source/features/quick-review-buttons.tsx index a67dba0e..1985e635 100644 --- a/source/features/quick-review-buttons.tsx +++ b/source/features/quick-review-buttons.tsx @@ -73,7 +73,7 @@ function init(): false | void { select('[type="submit"]:not([name])', form)!.remove(); // The selector excludes the "Cancel" button // This will prevent submission when clicking "Comment" and "Request changes" without entering a comment and no other review comments are pending - delegate<HTMLButtonElement>(form, 'button', 'click', ({delegateTarget: {value}}) => { + delegate(form, 'button', 'click', ({delegateTarget: {value}}) => { const pendingComments = looseParseInt(select('.js-reviews-toggle .js-pending-review-comment-count')!); const submissionRequiresComment = pendingComments === 0 && (value === 'reject' || value === 'comment'); select('#pull_request_review_body', form)!.toggleAttribute('required', submissionRequiresComment); |