mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 13:19:02 +00:00
Fix crash when loading wheelchairs
This commit is contained in:
parent
944493652e
commit
36ccb21bb6
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ open class Preferences : RealmObject(), AvatarPreferences {
|
|||
|
||||
override fun getChair(): String? {
|
||||
return if (chair != null && chair != "none") {
|
||||
if (chair?.substring(0, 6) == "chair_") {
|
||||
if (chair?.contains("chair_") == true) {
|
||||
chair
|
||||
} else {
|
||||
"chair_" + chair!!
|
||||
|
|
|
|||
Loading…
Reference in a new issue