fix bug where deleting profile field was not possible
This commit is contained in:
parent
632be33af8
commit
7442f5bca8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue