Allow null names

This commit is contained in:
2025-07-26 11:42:00 +05:00
parent 77558ab0ee
commit 3652c8f66d
3 changed files with 3 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ class AddAccountActivity : AppCompatActivity() {
// Create new account object
val newAccount = Account(
id = mobile,
name = result.data.name,
name = result.data.name ?: "",
mobile = mobile,
email = result.data.email,
password = password,

View File

@@ -128,7 +128,7 @@ class LoginActivity : AppCompatActivity() {
// Create new account object
val newAccount = Account(
id = mobile,
name = result.data.name,
name = result.data.name ?: "",
mobile = mobile,
email = result.data.email,
password = password,

View File

@@ -19,7 +19,7 @@ data class ForgotPasswordRequest(
data class LoginResponse(
val id: Int,
val name: String,
val name: String?,
val mobile: String,
val email: String,
val createdAt: String,