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
+8
-2
Diff
round #0
+3
-1
src/screens/Profile/Header/EditProfileDialog.tsx
+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
+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
lemmaeof.gay
submitted
#0
1 commit
expand
collapse
Fix profile edit - dirty pronouns/website, empty website
Signed-off-by: lemmaeof.gay <drabber-tic.0s@icloud.com>
expand 0 comments
pull request successfully merged