Skip to content

Commit

Permalink
Fix comment box closing. Fixes #904 (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Feb 3, 2023
1 parent 1dd86fd commit 3ad7644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/components/comment/comment-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
let data = wsJsonToRes<CommentResponse>(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
Expand Down

0 comments on commit 3ad7644

Please sign in to comment.