Skip to content

Commit

Permalink
Fixed username not displaying correctly in user info
Browse files Browse the repository at this point in the history
  • Loading branch information
50t0r25 committed Apr 30, 2022
1 parent d4f4081 commit ba43ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/dz/notacompany/riide/UserInfoFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ class UserInfoFragment(private val userID: String) : Fragment(R.layout.fragment_
// Fetching all user data and setting them in the fields
db.collection("users").document(userID).get()
.addOnSuccessListener { user ->
val localUsername = "Username: ".plus(user.data!!["username"].toString())
val localUsername = user.data!!["username"].toString()
val filledInfo = user.data!!["filledInfo"].toString().toBoolean()
username.text = localUsername
username.text = "Username: ".plus(localUsername)
email.text = "Email: ".plus(user.data!!["email"].toString())
infoTitle.text = localUsername.plus("'s contact info:")

Expand Down

0 comments on commit ba43ffd

Please sign in to comment.