Fixes #53! Just adds pronouns and website to the list of candidates for whether a profile is dirty. Pretty simple fix!
+1
-3
src/screens/Profile/Header/EditProfileDialog.tsx
+1
-3
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
151
149
152
150
const enableSquareAvatars = useEnableSquareAvatars()
153
151
+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
2 rounds
2 comments
lemmaeof.gay
submitted
#1
4 commits
expand
collapse
check for dirty pronouns and website when updating profile
check for dirty pronouns and website when updating profile
Signed-off-by: lemmaeof.gay <6722691+LemmaEOF@users.noreply.github.com>
allow submitting an empty website field
allow submitting an empty website field
Signed-off-by: lemmaeof.gay <drabber-tic.0s@icloud.com>
expand 0 comments
closed without merging
lemmaeof.gay
submitted
#0
1 commit
expand
collapse
check for dirty pronouns and website when updating profile
expand 2 comments
decades-old software term for data that has been edited in memory but not committed to a database yet, I don't know the full etymology
why is it called dirty