We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86786af commit edea0e5Copy full SHA for edea0e5
src/profile.ts
@@ -196,7 +196,11 @@ export async function getProfile(
196
197
const { value } = res;
198
const { errors } = value;
199
- if (!value.data && errors != null && errors.length > 0) {
+ if (
200
+ (!value.data || !value.data.user || !value.data.user.result) &&
201
+ errors != null &&
202
+ errors.length > 0
203
+ ) {
204
return {
205
success: false,
206
err: new Error(errors.map((e) => e.message).join('\n')),
0 commit comments