fix: user menu not display to guest because of 'id' not exist
This commit is contained in:
parent
4816d75e23
commit
dbad2a485f
1 changed files with 2 additions and 2 deletions
|
@ -290,7 +290,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
|||
os.post({ specified: user });
|
||||
},
|
||||
},
|
||||
me.id !== user.id
|
||||
isSignedIn(me) && me.id !== user.id
|
||||
? {
|
||||
type: "link",
|
||||
icon: `${icon("ph-chats-teardrop")}`,
|
||||
|
@ -313,7 +313,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
|||
text: i18n.ts.addToList,
|
||||
action: pushList,
|
||||
},
|
||||
me.id !== user.id
|
||||
isSignedIn(me) && me.id !== user.id
|
||||
? {
|
||||
icon: `${icon("ph-users-three")}`,
|
||||
text: i18n.ts.inviteToGroup,
|
||||
|
|
Loading…
Reference in a new issue