Skip to content

fix(settings): Fix avatar deletion failing#20236

Open
LZoog wants to merge 1 commit intomainfrom
FXA-13300
Open

fix(settings): Fix avatar deletion failing#20236
LZoog wants to merge 1 commit intomainfrom
FXA-13300

Conversation

@LZoog
Copy link
Contributor

@LZoog LZoog commented Mar 21, 2026

Because:

  • After an avatar upload, if a user refreshes or just goes back to Settings at a different point in time, we are hitting /v/profile/default to delete the avatar instead of sending the avatar ID, causing a 400 but giving the user visual feedback that the avatar has been removed

This commit:

  • Fetches v1/avatar alongside v1/profile to get the current avatar ID
  • Falls back to null instead of 'default' when no avatar ID is available
  • Adjusts the functional test to account for this

closes FXA-13300


If you copy and paste the functional test changes into main you will see it fail.

Because:
* After an avatar upload, if a user refreshes or just goes back to Settings at a different point in time, we are hitting /v/profile/default to delete the avatar instead of sending the avatar ID, causing a 400 but giving the usual visual feedback that the avatar has been removed

This commit:
* Fetches v1/avatar alongside v1/profile to get the current avatar ID
* Falls back to null instead of 'default' when no avatar ID is available
* Adjusts the functional test to account for this

closes FXA-13300
@LZoog LZoog requested a review from a team as a code owner March 21, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant