Commit c648756a authored by Connor Shea's avatar Connor Shea

Fix more incomplete if/else statements.

parent d8654744
......@@ -16,6 +16,8 @@
allResolved: function () {
if (this.discussion) {
return this.unresolvedDiscussionCount === 0;
} else {
return true;
}
},
showButton: function () {
......
......@@ -22,11 +22,15 @@
showButton: function () {
if (this.discussion) {
return this.discussion.isResolvable();
} else {
return undefined;
}
},
allResolved: function () {
if (this.discussion) {
return this.discussion.isResolved();
} else {
return undefined;
}
},
buttonText: function () {
......@@ -39,6 +43,8 @@
loading: function () {
if (this.discussion) {
return this.discussion.loading;
} else {
return undefined;
}
}
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment