Make student second name nullable
This commit is contained in:
parent
f907f691a2
commit
b919b962ca
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ data class Diary(
|
|||
val studentName: String,
|
||||
|
||||
@SerializedName("UczenImie2")
|
||||
val studentSecondName: String,
|
||||
val studentSecondName: String?,
|
||||
|
||||
@SerializedName("UczenNazwisko")
|
||||
val studentSurname: String,
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue