fix bug where deleting profile field was not possible

This commit is contained in:
Konrad Pozniak 2018-08-18 09:12:57 +02:00
parent ad72e63026
commit 5118122c4a

View File

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