diff --git a/packages/web3-providers/src/Firefly/Twitter.ts b/packages/web3-providers/src/Firefly/Twitter.ts index bae308fcf67..77e4c935476 100644 --- a/packages/web3-providers/src/Firefly/Twitter.ts +++ b/packages/web3-providers/src/Firefly/Twitter.ts @@ -10,7 +10,7 @@ export class FireflyTwitter { screenName, }) const res = await fetchJSON(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 } }