From 7442f5bca8d7caa221d1d33725871d597b894754 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(