Skip to content

Commit

Permalink
fix reset url
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed Dec 20, 2024
1 parent b782f9e commit 44de406
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function UserAvatarEditor({ currentUsername, username, setAvatarObj, name, disab
};

const clickReset = (): void => {
setNewAvatarSource(`/avatar/%40${username}`);
setNewAvatarSource(`/avatar/%40${useFullNameForDefaultAvatar ? name : username}`);
setAvatarObj('reset');
};

Expand Down

0 comments on commit 44de406

Please sign in to comment.