]> Untitled Git - lemmy-ui.git/commitdiff
Fix private instance setting. Fixes #769 (#786)
authorDessalines <dessalines@users.noreply.github.com>
Wed, 21 Sep 2022 14:05:54 +0000 (10:05 -0400)
committerGitHub <noreply@github.com>
Wed, 21 Sep 2022 14:05:54 +0000 (10:05 -0400)
src/shared/components/home/site-form.tsx

index e9a5b14006cc863d15dd4daafc519199a6c9c264..5602d9bf13a4b37881b5cba31456ba50b6e14d5a 100644 (file)
@@ -427,7 +427,7 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> {
                   class="form-check-input"
                   id="create-site-private-instance"
                   type="checkbox"
-                  value={toUndefined(this.state.siteForm.default_theme)}
+                  checked={toUndefined(this.state.siteForm.private_instance)}
                   onChange={linkEvent(this, this.handleSitePrivateInstance)}
                 />
                 <label