Skip to content

fix: Wyre widget crash on Buy button (#179)#310

Closed
rovidev95 wants to merge 6 commits into
austintgriffith:rimfrom
rovidev95:fix/issue-179-wyre-widget
Closed

fix: Wyre widget crash on Buy button (#179)#310
rovidev95 wants to merge 6 commits into
austintgriffith:rimfrom
rovidev95:fix/issue-179-wyre-widget

Conversation

@rovidev95

Copy link
Copy Markdown

Summary

Fixes #179Cannot read property 'Widget' of undefined on wyre.xdai.io.

Root cause: wyre.js captured window.Wyre at module load time, before widget-loader.js finished loading.

Fix:

  • Resolve window.Wyre lazily inside displayWidget()
  • Guard when SDK missing; show user-facing alert via Exchange
  • Return false so UI resets loading state

Test plan

  • Open Exchange on localhost / wyre.xdai.io
  • Click Buy button — widget opens OR friendly warning (no console crash)

Stacks on top of rimble-ui work in #309 (same rim branch).

— RoviDev (@rovidev95)

rovidev95 and others added 6 commits July 2, 2026 08:25
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ed, WithdrawFromPrivate

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@rovidev95

Copy link
Copy Markdown
Author

Update: #311 now includes all commits from this PR (+ Wyre #179 + batch bounties). For reviewer efficiency, please review #311 only — this PR can close when #311 merges. /claim unchanged on #311 body.

@rovidev95

Copy link
Copy Markdown
Author

Closing in favor of #311 which includes the Wyre #179 fix + rimble-ui + batch bounties. Please review #311.

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.

1 participant