Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client

Profile edit fixes - only change pronouns/website, empty website #60

merged opened by lemmaeof.gay targeting main from lemmaeof.gay/witchsky.app: edit-profile-fixes

Manual squash-merge of my last one lmao, fixes #53 and #54 by activating the save button whenever pronouns or website are modified and submitting undefined if the website field is empty

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:fxgreqfae3vqhyjsntsikfux/sh.tangled.repo.pull/3mejv4edblf22
+8 -2
Diff #0
+3 -1
src/screens/Profile/Header/EditProfileDialog.tsx
··· 145 145 displayName !== initialDisplayName || 146 146 description !== initialDescription || 147 147 userAvatar !== profile.avatar || 148 - userBanner !== profile.banner 148 + userBanner !== profile.banner || 149 + pronouns !== initialPronouns || 150 + website !== initialWebsite 149 151 150 152 const enableSquareAvatars = useEnableSquareAvatars() 151 153
+5 -1
src/state/queries/profile.ts
··· 185 185 next.pronouns = updates.pronouns 186 186 } 187 187 if ('website' in updates) { 188 - next.website = updates.website 188 + if (updates['website'] && updates['website'].length !== 0) { 189 + next.website = updates.website 190 + } else { 191 + next.website = undefined 192 + } 189 193 } 190 194 } 191 195 if (newUserAvatarPromise) {

History

1 round 0 comments
sign up or login to add to the discussion
lemmaeof.gay submitted #0
1 commit
expand
Fix profile edit - dirty pronouns/website, empty website
expand 0 comments
pull request successfully merged