-
Notifications
You must be signed in to change notification settings - Fork 164
refactor: remove an unnecessary console.warn #1528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd the label graphite-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
🌿 Documentation Preview
|
@@ -88,7 +88,6 @@ export function useSmartAccountClient({ | |||
|
|||
const eoaClient = useMemo(() => { | |||
if (!isConnected) return null; | |||
console.warn("EOA is connected, will not return an SCA client"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@moldy530 I see you added this in, any concerns with removing this?
Any dev that implements the eoa connection flow will be flooded with these warnings.
Pull Request Checklist
yarn test
)site
folder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change
)yarn lint:check
) and fix any issues? (yarn lint:write
)PR-Codex overview
This PR focuses on modifying the behavior of the
useSmartAccountClient
hook in theaccount-kit/react/src/hooks/useSmartAccountClient.ts
file. It adjusts the logic for returning the smart account client based on the connection status.Detailed summary
console.warn("EOA is connected, will not return an SCA client");
null
for theeoaClient
whenisConnected
is false.client
property in the returned object is set toundefined
.