Fix comment box closing. Fixes #904 (#914)

This commit is contained in:
Dessalines 2023-02-02 21:26:18 -05:00 committed by GitHub
parent 1dd86fdf91
commit 3ad7644725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
let data = wsJsonToRes<CommentResponse>(msg); let data = wsJsonToRes<CommentResponse>(msg);
// This only finishes this form, if the randomly generated form_id matches the one received // 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 }); this.setState({ finished: true });
// Necessary because it broke tribute for some reason // Necessary because it broke tribute for some reason