fix bug where deleting profile field was not possible

main
Konrad Pozniak 6 years ago
parent ad72e63026
commit 5118122c4a
  1. 2
      app/src/main/java/com/keylesspalace/tusky/viewmodel/EditProfileViewModel.kt

@ -231,7 +231,7 @@ class EditProfileViewModel @Inject constructor(
private fun calculateFieldToUpdate(newField: StringField?, fieldsUnchanged: Boolean): Pair<RequestBody, RequestBody>? { private fun calculateFieldToUpdate(newField: StringField?, fieldsUnchanged: Boolean): Pair<RequestBody, RequestBody>? {
if(fieldsUnchanged || newField == null || newField.name.isBlank()) { if(fieldsUnchanged || newField == null) {
return null return null
} }
return Pair( return Pair(

Loading…
Cancel
Save