mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
refactor: update avatar if updating profile is successful
This commit is contained in:
1 parent
521ff26df2
commit
b6772fdaca
2 files changed
+4
No files matched your search
@@ -176,6 +176,8 @@ export default function Account({ session }) {
|
||||
|
||||
if (error) {
|
||||
alert(error.message)
|
||||
} else {
|
||||
setAvatarUrl(avatarUrl)
|
||||
}
|
||||
setLoading(false)
|
||||
}
|
||||
|
||||
@@ -51,6 +51,8 @@ export default function Account({ session }) {
|
||||
|
||||
if (error) {
|
||||
alert(error.message)
|
||||
} else {
|
||||
setAvatarUrl(avatarUrl)
|
||||
}
|
||||
setLoading(false)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user