From 097e4cea0ac316025f6ce7325624099800cf2521 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 2 Feb 2023 21:11:35 -0500 Subject: [PATCH] Fix comment box closing. Fixes #904 --- 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 40650db9..9c29381d 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