diff --git a/frontend-react/src/components/user/AvatarWithInfo.tsx b/frontend-react/src/components/user/AvatarWithInfo.tsx index dc77ec9bb..0ecb6acea 100644 --- a/frontend-react/src/components/user/AvatarWithInfo.tsx +++ b/frontend-react/src/components/user/AvatarWithInfo.tsx @@ -86,7 +86,7 @@ const AvatarWithInfo: React.FC = ({ user, canEdit }) => { )} - {user.youtube_name && ( + {user.youtube_name && user.youtube_id && ( = ({ user, canEdit }) => { color={grayWithShade} > - + {user.youtube_name} diff --git a/frontend-react/src/graphql/queries/searchForUser.ts b/frontend-react/src/graphql/queries/searchForUser.ts index d058b6f83..b1bdf75b8 100644 --- a/frontend-react/src/graphql/queries/searchForUser.ts +++ b/frontend-react/src/graphql/queries/searchForUser.ts @@ -20,6 +20,7 @@ export const SEARCH_FOR_USER: DocumentNode = gql` twitch_name twitter_name youtube_name + youtube_id country weapons top500 diff --git a/frontend-react/src/types.ts b/frontend-react/src/types.ts index 8c6f69945..21e4a3fc5 100644 --- a/frontend-react/src/types.ts +++ b/frontend-react/src/types.ts @@ -110,6 +110,7 @@ export interface User { twitch_name?: string twitter_name?: string youtube_name?: string + youtube_id?: string country?: CountryCode weapons?: Weapon[] top500: boolean