Make student second name nullable

This commit is contained in:
Mikołaj Pich 2020-08-23 19:16:15 +02:00
parent f907f691a2
commit b919b962ca
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ data class Diary(
val studentName: String,
@SerializedName("UczenImie2")
val studentSecondName: String,
val studentSecondName: String?,
@SerializedName("UczenNazwisko")
val studentSurname: String,

View file

@ -122,7 +122,7 @@ class RegisterRepository(
symbol = symbol,
studentId = diary.studentId,
studentName = diary.studentName,
studentSecondName = diary.studentSecondName,
studentSecondName = diary.studentSecondName.orEmpty(),
studentSurname = diary.studentSurname,
schoolSymbol = schoolSymbol,
schoolShortName = moduleUrl.text().takeIf { "Uczeń" !in it }.orEmpty(),