Change summary
webui/src/pages/bug/CommentForm.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Detailed changes
@@ -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 (