Added missing param to handler function in prop

Added missing 'e' (event) param to handler function in onUpload prop (Avatar component)
This commit is contained in:
Felipe Cruz authored and GitHub committed 2022-06-03 18:40:07 +02:00
1 parent e99fda2941
commit 609cd3b7ae
1 file changed
+1 -1
+1 -1
View File
@@ -522,7 +522,7 @@ return (
<Avatar
url={avatar_url}
size={150}
onUpload={(url) => {
onUpload={(e, url) => {
setAvatarUrl(url)
updateProfile(e)
}}