mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 20:59:00 +00:00
fix animal gear not being purchasable
This commit is contained in:
parent
a07e6e002c
commit
256f6b65e3
1 changed files with 4 additions and 1 deletions
|
|
@ -57,7 +57,10 @@ class AvatarEquipmentFragment :
|
|||
}
|
||||
}
|
||||
adapter.onUnlock = { equipment ->
|
||||
lifecycleScope.launchCatching { }
|
||||
lifecycleScope.launchCatching {
|
||||
inventoryRepository.purchaseItem("gear", equipment.key ?: "", 1)
|
||||
userRepository.retrieveUser(forced = true)
|
||||
}
|
||||
}
|
||||
return super.onCreateView(inflater, container, savedInstanceState)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue