Skip to content
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

refactor: handle balance and balanceSymbol fetch to update w3m-button #2433

Merged
merged 5 commits into from
Aug 8, 2024

Conversation

enesozturk
Copy link
Contributor

@enesozturk enesozturk commented Jun 17, 2024

Breaking Changes

We are rendering button as soon as we connected but we fetch the balance async. This creates a glitch in the button UI that the UI is changing a bit. This PR introduces changes to update the rendering business logic a bit to handle balances in loading time.

Changes

  • feat:
  • fix:
  • chore:

Associated Issues

closes #...

Copy link

vercel bot commented Jun 17, 2024

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

Name Status Preview Updated (UTC)
web3modal-gallery ✅ Ready (Inspect) Visit Preview Aug 8, 2024 9:48am
web3modal-laboratory ✅ Ready (Inspect) Visit Preview Aug 8, 2024 9:48am

@@ -264,7 +264,7 @@ export class W3mAccountDefaultWidget extends LitElement {
await ConnectionController.disconnect()
EventsController.sendEvent({ type: 'track', event: 'DISCONNECT_SUCCESS' })
ModalController.close()
} catch {
} catch () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this if empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants