diff --git a/apps/cory/ssb/tf-message.js b/apps/cory/ssb/tf-message.js
index 06ae0fe2..f806e2e5 100644
--- a/apps/cory/ssb/tf-message.js
+++ b/apps/cory/ssb/tf-message.js
@@ -182,10 +182,12 @@ class TfMessageElement extends LitElement {
render_children() {
let self = this;
- if (this.collapsed && this.message.child_messages?.length) {
- return html` self.collapsed = false}>`;
- } else {
- return html` self.collapsed = true}>${(this.message.child_messages || []).map(x => html``)}`;
+ if (this.message.child_messages?.length) {
+ if (this.collapsed) {
+ return html` self.collapsed = false}>`;
+ } else {
+ return html` self.collapsed = true}>${(this.message.child_messages || []).map(x => html``)}`;
+ }
}
}