Skip to content

Commit

Permalink
fix(user settings): inverted logic on confirm account deletion (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed May 5, 2024
1 parent 9807a71 commit 38665ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/elements/pages/dev/user/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,12 @@ export default class SettingsPage extends LitElement {
<toggle-switch
.value=${this.identityObserver.identity.awaitingDeletion}
@toggle=${(e: ToggleSwitchEvent) => {
if (!e.value) {
if (e.value) {
e.preventDefault();
return this.confirmAccountDeletion();
} else {
this.settingChanged('toggle-deletion', false);
}
this.settingChanged('toggle-deletion', !e.value);
}}
></toggle-switch>
</div>
Expand Down

0 comments on commit 38665ed

Please sign in to comment.