Skip to content

Commit

Permalink
fix: mf-6442 no user info in response (#11833)
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask authored Oct 9, 2024
1 parent 0e1724b commit 2b4f5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-providers/src/Firefly/Twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class FireflyTwitter {
screenName,
})
const res = await fetchJSON<FireflyTwitterAPI.TwitterUserInfoResponse>(url)
if (res.code === 0) return res.data.data.user.result
if (res.code === 0 && res.data.data.user.result.__typename === 'User') return res.data.data.user.result
return null
}
}

0 comments on commit 2b4f5cc

Please sign in to comment.