Hide gold from other user profiles

This commit is contained in:
Hafiz 2022-03-14 04:07:21 -04:00
parent c6305d9121
commit 0542a8d3bf

View file

@ -73,9 +73,9 @@ class AvatarWithBarsViewModel(private val context: Context, private val binding:
if (!stats.isBuffed) { if (!stats.isBuffed) {
binding.buffImageView.visibility = View.GONE binding.buffImageView.visibility = View.GONE
} }
binding.currencyView.gold = stats.gp ?: 0.0
if (user is User) { if (user is User) {
binding.currencyView.gold = stats.gp ?: 0.0
binding.currencyView.hourglasses = user.hourglassCount.toDouble() binding.currencyView.hourglasses = user.hourglassCount.toDouble()
binding.currencyView.gems = user.gemCount.toDouble() binding.currencyView.gems = user.gemCount.toDouble()
} }