From: Dessalines Date: Fri, 3 Feb 2023 02:26:18 +0000 (-0500) Subject: Fix comment box closing. Fixes #904 (#914) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/README.md?a=commitdiff_plain;h=3ad76447251805fb66219f8e8c51932a45ed352f;p=lemmy-ui.git Fix comment box closing. Fixes #904 (#914) --- diff --git a/src/shared/components/comment/comment-form.tsx b/src/shared/components/comment/comment-form.tsx index 40650db..9c29381 100644 --- a/src/shared/components/comment/comment-form.tsx +++ b/src/shared/components/comment/comment-form.tsx @@ -184,7 +184,7 @@ export class CommentForm extends Component { let data = wsJsonToRes(msg); // This only finishes this form, if the randomly generated form_id matches the one received - if (this.state.formId == data.form_id) { + if (this.state.formId && this.state.formId == data.form_id) { this.setState({ finished: true }); // Necessary because it broke tribute for some reason