Skip to content

Commit 93660f7

Browse files
committed
Fix submitting a review with an empty comment
1 parent 4fd4f6e commit 93660f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/components/pr-review.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2839,7 +2839,7 @@ const SubmitReviewDropdown = memo(function SubmitReviewDropdown() {
28392839
e.stopPropagation();
28402840
handleSubmit();
28412841
}}
2842-
disabled={submitting || (pendingCount === 0 && !reviewBody.trim())}
2842+
disabled={submitting || (reviewType === "COMMENT" && pendingCount === 0 && !reviewBody.trim())}
28432843
className={cn(
28442844
"flex items-center gap-1.5 px-2 py-1 text-xs font-medium rounded-md transition-colors disabled:opacity-50",
28452845
reviewType === "APPROVE" &&

0 commit comments

Comments
 (0)