aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-05-25 21:02:20 +0200
committerGitHub <noreply@github.com>2021-05-25 21:02:20 +0200
commit970c1cf1ab55df3d894c1c0a2bc9654b6f2b5c43 (patch)
tree67d6daf0447f8ca7cc8c01b7d2a15fea88a9fe32
parent098bcd0c1f26d0896e7ede3edb4040b01bc3126a (diff)
downloadgit-bug-970c1cf1ab55df3d894c1c0a2bc9654b6f2b5c43.tar.gz
Update webui/src/pages/bug/CommentForm.tsx
-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 (