async-labs / saas

Build your own SaaS business with SaaS boilerplate. Productive stack: React, Material-UI, Next, MobX, WebSockets, Express, Node, Mongoose, MongoDB. Written with TypeScript.
https://saas-app.async-await.com
MIT License
4.06k stars 674 forks source link

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

Open OB42 opened 1 year ago

OB42 commented 1 year ago

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.

klyburke commented 1 year ago

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

klyburke commented 1 year ago

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