Skip to content

fix: default accountChain for Identity component#1071

Merged
Zizzamia merged 3 commits intomainfrom
zizzamia/tests-8-15
Aug 15, 2024
Merged

fix: default accountChain for Identity component#1071
Zizzamia merged 3 commits intomainfrom
zizzamia/tests-8-15

Conversation

@Zizzamia
Copy link
Contributor

What changed? Why?

Notes to reviewers

How has it been tested?

@vercel
Copy link

vercel bot commented Aug 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
onchainkit-coverage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 10:13pm
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 10:13pm
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 10:13pm

const { chain: contextChain } = useOnchainKit();

const accountChain = contextChain || chain;
const accountChain = chain ?? contextChain;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abcrane123 that's why we were getting confused. We had the wrong order.

@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: '/playground',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding some extra stuff to fix the playground story

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant