Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug where the avatars don't get edited #201

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OB42
Copy link

@OB42 OB42 commented Jul 9, 2023

Hi,
the form to edit a user or team avatar seemed to be buggy,
orignally useState was used, but since the setNewAvatarUrl method does not have an immediate effect on newAvatarUrl, and newAvatarUrl was originally set to the existing avatar, the avatars where not modified.

OB42 added 2 commits July 9, 2023 23:14
The set method from useState is not instant. In most cases this will cause the url to not be modified in the base.
@klyburke
Copy link
Member

Thanks! We will review and potentially incorporate in our next book update.

1 similar comment
@klyburke
Copy link
Member

Thanks! We will review and potentially incorporate in our next book update.

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.

None yet

2 participants