Fix assignment for new avatar object structure
This commit is contained in:
parent
d8936c8320
commit
3d4e73675f
1 changed files with 2 additions and 2 deletions
|
|
@ -399,8 +399,8 @@ const PartyDetails = (props: Props) => {
|
|||
let username, picture, element
|
||||
if (accountState.account.authorized && props.new) {
|
||||
username = accountState.account.user?.username
|
||||
picture = accountState.account.user?.picture
|
||||
element = accountState.account.user?.element
|
||||
picture = accountState.account.user?.avatar.picture
|
||||
element = accountState.account.user?.avatar.element
|
||||
} else if (party.user && !props.new) {
|
||||
username = party.user.username
|
||||
picture = party.user.avatar.picture
|
||||
|
|
|
|||
Loading…
Reference in a new issue