aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webui/src/pages/bug/CommentForm.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webui/src/pages/bug/CommentForm.tsx b/webui/src/pages/bug/CommentForm.tsx
index fb33a8be..1a7ebc29 100644
--- a/webui/src/pages/bug/CommentForm.tsx
+++ b/webui/src/pages/bug/CommentForm.tsx
@@ -81,11 +81,11 @@ function CommentForm({ bug }: Props) {
function getBugStatusButton() {
if (bug.status === 'OPEN' && issueComment.length > 0) {
return <CloseBugWithCommentButton bug={bug} comment={issueComment} />;
- } else if (bug.status === 'OPEN') {
+ }
+ if (bug.status === 'OPEN') {
return <CloseBugButton bug={bug} />;
- } else {
- return <ReopenBugButton bug={bug} disabled={issueComment.length > 0} />;
}
+ return <ReopenBugButton bug={bug} disabled={issueComment.length > 0} />;
}
return (