refactor: update avatar if updating profile is successful

This commit is contained in:
Danyl Fernandes committed 2023-07-01 00:19:16 +05:30
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)
}