diff --git a/src/elements/pages/dev/user/settings.ts b/src/elements/pages/dev/user/settings.ts index 054c3ef9..332c74ad 100644 --- a/src/elements/pages/dev/user/settings.ts +++ b/src/elements/pages/dev/user/settings.ts @@ -327,11 +327,12 @@ export default class SettingsPage extends LitElement { { - if (!e.value) { + if (e.value) { e.preventDefault(); return this.confirmAccountDeletion(); + } else { + this.settingChanged('toggle-deletion', false); } - this.settingChanged('toggle-deletion', !e.value); }} >