Skip to content

Commit d0558f9

Browse files
authored
Only one reviewer can be seen on the PR page (#8155)
Fixes #8131
1 parent 6802042 commit d0558f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/github/graphql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ export interface Account extends Actor {
122122

123123
export function isAccount(x: Actor | Team | Node | undefined | null): x is Account {
124124
const asAccount = x as Partial<Account>;
125-
return !!asAccount && !!asAccount?.name && (asAccount?.email !== undefined);
125+
return !!asAccount && (asAccount?.name !== undefined) && (asAccount?.email !== undefined);
126126
}
127127

128128
export function isTeam(x: Actor | Team | Node | undefined | null): x is Team {
129129
const asTeam = x as Partial<Team>;
130-
return !!asTeam && !!asTeam?.slug;
130+
return !!asTeam && (asTeam?.slug !== undefined);
131131
}
132132

133133
export interface Team {

0 commit comments

Comments
 (0)