initial commit

This commit is contained in:
JamesL813
2022-05-16 21:48:41 -04:00
parent 6f6d03080f
commit 4e292ae130
3 changed files with 3 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ data class Contact(
fun getNameToDisplay(): String {
val firstMiddle = "$firstName $middleName".trim()
val firstPart = if (startWithSurname) surname else firstMiddle
val firstPart = if (startWithSurname) surname else firstMiddle //TODO
val lastPart = if (startWithSurname) firstMiddle else surname
val suffixComma = if (suffix.isEmpty()) "" else ", $suffix"
val fullName = "$prefix $firstPart $lastPart$suffixComma".trim()