From 5118122c4a412c2b631f84f6f72b32d5fee1769b Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sat, 18 Aug 2018 09:12:57 +0200 Subject: [PATCH] fix bug where deleting profile field was not possible --- .../com/keylesspalace/tusky/viewmodel/EditProfileViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/viewmodel/EditProfileViewModel.kt b/app/src/main/java/com/keylesspalace/tusky/viewmodel/EditProfileViewModel.kt index 96e46586..556440ea 100644 --- a/app/src/main/java/com/keylesspalace/tusky/viewmodel/EditProfileViewModel.kt +++ b/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? { - if(fieldsUnchanged || newField == null || newField.name.isBlank()) { + if(fieldsUnchanged || newField == null) { return null } return Pair(