summaryrefslogtreecommitdiff
path: root/source/features/quick-review-buttons.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2020-11-18 19:55:59 -0500
committerGravatar GitHub <noreply@github.com> 2020-11-18 18:55:59 -0600
commita935456acab0c7bdc021829e18ce20230e18c752 (patch)
treee61eed13a433381ba223a4ca962e904c8740fc91 /source/features/quick-review-buttons.tsx
parentcab33f6f47c4eef0a3bc793f2004767f34b6abe9 (diff)
downloadrefined-github-a935456acab0c7bdc021829e18ce20230e18c752.tar.gz
refined-github-a935456acab0c7bdc021829e18ce20230e18c752.tar.zst
refined-github-a935456acab0c7bdc021829e18ce20230e18c752.zip
Lint (#3723)20.11.19
Diffstat (limited to 'source/features/quick-review-buttons.tsx')
-rw-r--r--source/features/quick-review-buttons.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/quick-review-buttons.tsx b/source/features/quick-review-buttons.tsx
index 08fd85ad..4bfee13e 100644
--- a/source/features/quick-review-buttons.tsx
+++ b/source/features/quick-review-buttons.tsx
@@ -74,7 +74,7 @@ function init(): false | void {
// 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}}) => {
- const pendingComments = looseParseInt(select('.js-reviews-toggle .js-pending-review-comment-count')!.textContent!);
+ 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);
});