Skip to content

Commit

Permalink
test: fix ci problem
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Nov 13, 2023
1 parent 856ae30 commit 6e71a2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions client/shared/model/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function pickUserBaseInfo(userInfo: UserLoginInfo): UserBaseInfo {
'discriminator',
'avatar',
'temporary',
'type',
'emailVerified',
'banned',
]);
Expand All @@ -64,6 +65,7 @@ const builtinUserInfo: Record<string, () => UserBaseInfo> = {
discriminator: '0000',
avatar: null,
temporary: false,
type: 'normalUser',
emailVerified: false,
banned: false,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const FriendList: React.FC<{
<div>
<IconBtn
icon="mdi:message-text-outline"
onClick={() => handleCreateConverse(item.id)}
onClick={() => handleCreateConverse(item._id)}
/>
</div>
</Tooltip>,
Expand All @@ -127,15 +127,15 @@ export const FriendList: React.FC<{
items: [
{
key: 'setNickname',
onClick: () => handleSetFriendNickname(item.id),
onClick: () => handleSetFriendNickname(item._id),
label: isValidStr(item.nickname)
? t('更改好友昵称')
: t('添加好友昵称'),
},
{
key: 'delete',
danger: true,
onClick: () => handleRemoveFriend(item.id),
onClick: () => handleRemoveFriend(item._id),
label: t('删除'),
},
],
Expand Down

0 comments on commit 6e71a2a

Please sign in to comment.