From 3ad76447251805fb66219f8e8c51932a45ed352f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 2 Feb 2023 21:26:18 -0500 Subject: [PATCH] Fix comment box closing. Fixes #904 (#914) --- src/shared/components/comment/comment-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.1