We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea8c6d8 commit a2622b2Copy full SHA for a2622b2
1 file changed
src/github/graphql.ts
@@ -122,7 +122,7 @@ export interface Account extends Actor {
122
123
export function isAccount(x: Actor | Team | Node | undefined | null): x is Account {
124
const asAccount = x as Partial<Account>;
125
- return !!asAccount && !!asAccount?.name && !!asAccount?.email;
+ return !!asAccount && !!asAccount?.name && (asAccount?.email !== undefined);
126
}
127
128
export function isTeam(x: Actor | Team | Node | undefined | null): x is Team {
0 commit comments