fix: users can exist without inviters

This commit is contained in:
Harsh Shandilya 2022-12-10 10:14:35 +00:00
parent 4b9b148519
commit 51a8538d6a
3 changed files with 10 additions and 4 deletions

View file

@ -90,9 +90,11 @@ private fun UserProfileInternal(
ThemedRichText(
text = user.about,
)
ThemedRichText(
text = "Invited by [${user.invitedBy}](https://lobste.rs/u/${user.invitedBy})",
)
user.invitedBy?.let { invitedBy ->
ThemedRichText(
text = "Invited by [${invitedBy}](https://lobste.rs/u/${user.invitedBy})",
)
}
}
}
}