Merge pull request #276 from aiko-chan-ai/dev

fix(User): user.bio return object
This commit is contained in:
Cinnamon 2022-08-24 12:08:52 +07:00 committed by GitHub
commit 6a750a4e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ class User extends Base {
}
if ('bio' in data.user_profile || 'bio' in data.user) {
this.bio = data.user_profile || data.user.bio;
this.bio = data.user_profile.bio || data.user.bio;
}
if ('premium_type' in data) {