]> Untitled Git - lemmy-ui.git/commitdiff
Fixing handlePostNsfwChange.
authorDessalines <tyhou13@gmx.com>
Wed, 21 Jun 2023 12:16:11 +0000 (08:16 -0400)
committerDessalines <tyhou13@gmx.com>
Wed, 21 Jun 2023 12:16:11 +0000 (08:16 -0400)
src/shared/components/post/post-form.tsx

index 6e47759a70d5f792decb8891aab54313954933b2..2475d49d982bab5e34885596824fc1f897c441bb 100644 (file)
@@ -524,7 +524,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
               id="post-nsfw"
               type="checkbox"
               checked={this.state.form.nsfw}
-              onChange={linkEvent(this, this.handlePostNsfwChange)}
+              onChange={linkEvent(this, handlePostNsfwChange)}
             />
             <label className="form-check-label">{i18n.t("nsfw")}</label>
           </div>