Skip to content

fix: DeleteAccountModal never deletes the account #112

Description

@Mkalbani

File: src/components/modals/DeleteAccountModal.tsx

Problem
The "Yes, delete" button only calls setRedirect(true) which navigates away — no API call, no token/user cleanup, no toast confirmation. The image-only buttons have alt="image-modal" instead of an accessible label.

Expected

  • Wire the confirm button to call an AuthService.deleteAccount() (or equivalent) that:
    • Hits the backend delete endpoint
    • Clears localStorage (quest_token, quest_user, quest_user_profile, quest_account_settings)
    • Shows a success toast via addNotification
    • Then redirects to /sign-in
  • Replace alt="image-modal" with alt="Yes, delete my account" and alt="Cancel".
  • While open, the rest of the app should be inert (focus trap, ESC to close).

Acceptance

  • Pressing "Yes" actually deletes the user's stored data and shows a confirmation before redirect.
  • Screen readers announce the yes/no actions.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions