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

fix(ConnectWalletForm): correctly render error from transientState #837

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

sidvishnoi
Copy link
Member

Context

state in ConnectWalletForm is a valtio proxy. Running t() (via toErrorInfo) on it doesn't resolve proxies (browser.i18n.getMessage doesn't resolve substitutions), leading to popup showing message like following:

image

Changes proposed in this pull request

deepClone to resolve valtio proxies so t() works as intended.

image

@github-actions github-actions bot added area: popup Improvements or additions to extension popup area: pages Changes to any of extension's pages labels Jan 16, 2025
Copy link
Contributor

Extension builds preview

Name Link
Latest commit 4de9123
Latest job logs Run #12807827506
BadgeDownload
BadgeDownload

@sidvishnoi sidvishnoi merged commit 16c100e into main Jan 16, 2025
9 checks passed
@sidvishnoi sidvishnoi deleted the fix-transientState-valtio-proxy-translate branch January 16, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: pages Changes to any of extension's pages area: popup Improvements or additions to extension popup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants