From 38665edc3bd25066b49603cac0b2f4f0aa98c2de Mon Sep 17 00:00:00 2001 From: NathanFlurry Date: Sun, 5 May 2024 02:09:22 +0000 Subject: [PATCH] fix(user settings): inverted logic on confirm account deletion (#146) --- src/elements/pages/dev/user/settings.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }} >