[SDK] Address stack review feedback (#11389)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-13 22:26:23 +03:00
committed by GitHub
parent 3677c98873
commit b89167f07c
8 changed files with 69 additions and 22 deletions
+7 -7
View File
@@ -206,21 +206,21 @@ export function useProfileUpdateMutation() {
appviewClient,
profile.did,
checkCommitted ||
(profile => {
(fresh => {
if (typeof newUserAvatar !== 'undefined') {
if (newUserAvatar === null && profile.avatar) {
if (newUserAvatar === null && fresh.avatar) {
// url hasn't cleared yet
return false
} else if (profile.avatar === profile.avatar) {
} else if (fresh.avatar === profile.avatar) {
// url hasn't changed yet
return false
}
}
if (typeof newUserBanner !== 'undefined') {
if (newUserBanner === null && profile.banner) {
if (newUserBanner === null && fresh.banner) {
// url hasn't cleared yet
return false
} else if (profile.banner === profile.banner) {
} else if (fresh.banner === profile.banner) {
// url hasn't changed yet
return false
}
@@ -229,8 +229,8 @@ export function useProfileUpdateMutation() {
return true
}
return (
profile.displayName === updates.displayName &&
profile.description === updates.description
fresh.displayName === updates.displayName &&
fresh.description === updates.description
)
}),
)