diff options
author | Michael Muré <batolettre@gmail.com> | 2021-05-25 21:02:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-25 21:02:20 +0200 |
commit | 970c1cf1ab55df3d894c1c0a2bc9654b6f2b5c43 (patch) | |
tree | 67d6daf0447f8ca7cc8c01b7d2a15fea88a9fe32 /webui/src | |
parent | 098bcd0c1f26d0896e7ede3edb4040b01bc3126a (diff) | |
download | git-bug-970c1cf1ab55df3d894c1c0a2bc9654b6f2b5c43.tar.gz |
Update webui/src/pages/bug/CommentForm.tsx
Diffstat (limited to 'webui/src')
-rw-r--r-- | webui/src/pages/bug/CommentForm.tsx | 6 |
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 ( |